Skip to content

Commit

Permalink
Tweaks to javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
luisgoncalves committed Feb 19, 2022
1 parent 62971a5 commit 9c48a4d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<version>2.10.4</version>
<configuration>
<docletArtifact>
<groupId>com.google.doclava</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/xades4j/algorithms/Algorithm.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* signature algorithms or canonicalization algorithms. Subclasses are provided
* for some common algorithms.
*
* @see xades4j.providers.AlgorithmsProviderEx
* @see xades4j.production.SignatureAlgorithms
* @see xades4j.properties.DataObjectDesc#withTransform(Algorithm)
*
* @author Luís
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Configuration of basic signature options such as whether {@code ds:KeyInfo}
* elements should be included.
*
* @see XadesSigningProfile#withBasicSignatureOptions(BasicSignatureOptions).
* @see XadesSigningProfile#withBasicSignatureOptions(BasicSignatureOptions)
*
* @author luis
*/
Expand Down
30 changes: 15 additions & 15 deletions src/main/java/xades4j/utils/Base64.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* <br>
* <code>byte[] myByteArray = Base64.decode( encoded );</code>
*
* <p>The <tt>options</tt> parameter, which appears in a few places, is used to pass
* <p>The <code>options</code> parameter, which appears in a few places, is used to pass
* several pieces of information to the encoder. In the "higher level" methods such as
* encodeBytes( bytes, options ) the options parameter can be used to indicate such
* things as first gzipping the bytes before encoding them, not inserting linefeeds,
Expand Down Expand Up @@ -117,9 +117,9 @@
* when data that's being decoded is gzip-compressed and will decompress it
* automatically. Generally things are cleaner. You'll probably have to
* change some method calls that you were making to support the new
* options format (<tt>int</tt>s that you "OR" together).</li>
* options format (<code>int</code>s that you "OR" together).</li>
* <li>v1.5.1 - Fixed bug when decompressing and decoding to a
* byte[] using <tt>decode( String s, boolean gzipCompressed )</tt>.
* byte[] using <code>decode( String s, boolean gzipCompressed )</code>.
* Added the ability to "suspend" encoding in the Output Stream so
* you can turn on and off the encoding if you need to embed base64
* data in an otherwise "normal" stream (like an XML file).</li>
Expand Down Expand Up @@ -1233,7 +1233,7 @@ public static byte[] decode( String s ) throws java.io.IOException {
* @param options encode options such as URL_SAFE
* @return the decoded data
* @throws java.io.IOException if there is an error
* @throws NullPointerException if <tt>s</tt> is null
* @throws NullPointerException if <code>s</code> is null
* @since 1.4
*/
public static byte[] decode( String s, int options ) throws java.io.IOException {
Expand Down Expand Up @@ -1300,7 +1300,7 @@ public static byte[] decode( String s, int options ) throws java.io.IOException

/**
* Attempts to decode Base64 data and deserialize a Java
* Object within. Returns <tt>null</tt> if there was an error.
* Object within. Returns <code>null</code> if there was an error.
*
* @param encodedObject The Base64 data to decode
* @return The decoded and deserialized object
Expand All @@ -1318,8 +1318,8 @@ public static Object decodeToObject( String encodedObject )

/**
* Attempts to decode Base64 data and deserialize a Java
* Object within. Returns <tt>null</tt> if there was an error.
* If <tt>loader</tt> is not null, it will be the class loader
* Object within. Returns <code>null</code> if there was an error.
* If <code>loader</code> is not null, it will be the class loader
* used when deserializing.
*
* @param encodedObject The Base64 data to decode
Expand Down Expand Up @@ -1570,7 +1570,7 @@ public static String encodeFromFile( String filename )
} // end encodeFromFile

/**
* Reads <tt>infile</tt> and encodes it to <tt>outfile</tt>.
* Reads <code>infile</code> and encodes it to <code>outfile</code>.
*
* @param infile Input file
* @param outfile Output file
Expand Down Expand Up @@ -1598,7 +1598,7 @@ public static void encodeFileToFile( String infile, String outfile )


/**
* Reads <tt>infile</tt> and decodes it to <tt>outfile</tt>.
* Reads <code>infile</code> and decodes it to <code>outfile</code>.
*
* @param infile Input file
* @param outfile Output file
Expand Down Expand Up @@ -1631,7 +1631,7 @@ public static void decodeFileToFile( String infile, String outfile )

/**
* A {@link Base64.InputStream} will read data from another
* <tt>java.io.InputStream</tt>, given in the constructor,
* <code>java.io.InputStream</code>, given in the constructor,
* and encode/decode to/from Base64 notation on the fly.
*
* @see Base64
Expand All @@ -1653,7 +1653,7 @@ public static class InputStream extends java.io.FilterInputStream {
/**
* Constructs a {@link Base64.InputStream} in DECODE mode.
*
* @param in the <tt>java.io.InputStream</tt> from which to read data.
* @param in the <code>java.io.InputStream</code> from which to read data.
* @since 1.3
*/
public InputStream( java.io.InputStream in ) {
Expand All @@ -1674,7 +1674,7 @@ public InputStream( java.io.InputStream in ) {
* Example: <code>new Base64.InputStream( in, Base64.DECODE )</code>
*
*
* @param in the <tt>java.io.InputStream</tt> from which to read data.
* @param in the <code>java.io.InputStream</code> from which to read data.
* @param options Specified options
* @see Base64#ENCODE
* @see Base64#DECODE
Expand Down Expand Up @@ -1844,7 +1844,7 @@ else if( i == 0 ) {

/**
* A {@link Base64.OutputStream} will write data to another
* <tt>java.io.OutputStream</tt>, given in the constructor,
* <code>java.io.OutputStream</code>, given in the constructor,
* and encode/decode to/from Base64 notation on the fly.
*
* @see Base64
Expand All @@ -1866,7 +1866,7 @@ public static class OutputStream extends java.io.FilterOutputStream {
/**
* Constructs a {@link Base64.OutputStream} in ENCODE mode.
*
* @param out the <tt>java.io.OutputStream</tt> to which data will be written.
* @param out the <code>java.io.OutputStream</code> to which data will be written.
* @since 1.3
*/
public OutputStream( java.io.OutputStream out ) {
Expand All @@ -1886,7 +1886,7 @@ public OutputStream( java.io.OutputStream out ) {
* <p>
* Example: <code>new Base64.OutputStream( out, Base64.ENCODE )</code>
*
* @param out the <tt>java.io.OutputStream</tt> to which data will be written.
* @param out the <code>java.io.OutputStream</code> to which data will be written.
* @param options Specified options.
* @see Base64#ENCODE
* @see Base64#DECODE
Expand Down

0 comments on commit 9c48a4d

Please sign in to comment.