Skip to content

Commit 70f5588

Browse files
committed
Fix Javadoc
1 parent e2d1cc0 commit 70f5588

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

http-client-java/src/main/java/net/iharder/Base64.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* <p>Encodes and decodes to and from Base64 notation.</p>
33
* <p>Homepage: <a href="http://iharder.net/base64">http://iharder.net/base64</a>.</p>
44
*
5-
* <p>The <tt>options</tt> parameter, which appears in a few places, is used to pass
5+
* <p>The options parameter, which appears in a few places, is used to pass
66
* several pieces of information to the encoder. In the "higher level" methods such as
77
* encodeBytes( bytes, options ) the options parameter can be used to indicate such
88
* things as first gzipping the bytes before encoding them, not inserting linefeeds
@@ -53,9 +53,9 @@
5353
* when data that's being decoded is gzip-compressed and will decompress it
5454
* automatically. Generally things are cleaner. You'll probably have to
5555
* change some method calls that you were making to support the new
56-
* options format (<tt>int</tt>s that you "OR" together).</li>
56+
* options format (int(s) that you "OR" together).</li>
5757
* <li>v1.5.1 - Fixed bug when decompressing and decoding to a
58-
* byte[] using <tt>decode( String s, boolean gzipCompressed )</tt>.
58+
* byte[] using {@code decode( String s, boolean gzipCompressed )}.
5959
* Added the ability to "suspend" encoding in the Output Stream so
6060
* you can turn on and off the encoding if you need to embed base64
6161
* data in an otherwise "normal" stream (like an XML file).</li>
@@ -524,7 +524,7 @@ private static byte[] encode3to4(
524524
* Serializes an object and returns the Base64-encoded
525525
* version of that serialized object. If the object
526526
* cannot be serialized or there is another error,
527-
* the method will return <tt>null</tt>.
527+
* the method will return null.
528528
* The object is not GZip-compressed before being encoded.
529529
*
530530
* @param serializableObject The object to encode
@@ -542,7 +542,7 @@ public static String encodeObject( java.io.Serializable serializableObject )
542542
* Serializes an object and returns the Base64-encoded
543543
* version of that serialized object. If the object
544544
* cannot be serialized or there is another error,
545-
* the method will return <tt>null</tt>.
545+
* the method will return null.
546546
* <p>
547547
* Valid options:<pre>
548548
* GZIP: gzip-compresses object before encoding it.
@@ -1049,7 +1049,7 @@ public static byte[] decode( String s, int options )
10491049

10501050
/**
10511051
* Attempts to decode Base64 data and deserialize a Java
1052-
* Object within. Returns <tt>null</tt> if there was an error.
1052+
* Object within. Returns null if there was an error.
10531053
*
10541054
* @param encodedObject The Base64 data to decode
10551055
* @return The decoded and deserialized object
@@ -1097,7 +1097,7 @@ public static Object decodeToObject( String encodedObject )
10971097
*
10981098
* @param dataToEncode byte array of data to encode in base64 form
10991099
* @param filename Filename for saving encoded data
1100-
* @return <tt>true</tt> if successful, <tt>false</tt> otherwise
1100+
* @return true if successful, false otherwise
11011101
*
11021102
* @since 2.1
11031103
*/
@@ -1131,7 +1131,7 @@ public static boolean encodeToFile( byte[] dataToEncode, String filename )
11311131
*
11321132
* @param dataToDecode Base64-encoded data as a string
11331133
* @param filename Filename for saving decoded data
1134-
* @return <tt>true</tt> if successful, <tt>false</tt> otherwise
1134+
* @return true if successful, false otherwise
11351135
*
11361136
* @since 2.1
11371137
*/
@@ -1268,7 +1268,7 @@ public static String encodeFromFile( String filename )
12681268

12691269

12701270
/**
1271-
* Reads <tt>infile</tt> and encodes it to <tt>outfile</tt>.
1271+
* Reads infile and encodes it to outfile.
12721272
*
12731273
* @param infile Input file
12741274
* @param outfile Output file
@@ -1305,7 +1305,7 @@ public static boolean encodeFileToFile( String infile, String outfile )
13051305

13061306

13071307
/**
1308-
* Reads <tt>infile</tt> and decodes it to <tt>outfile</tt>.
1308+
* Reads infile and decodes it to outfile.
13091309
*
13101310
* @param infile Input file
13111311
* @param outfile Output file
@@ -1346,7 +1346,7 @@ public static boolean decodeFileToFile( String infile, String outfile )
13461346

13471347
/**
13481348
* A {@link Base64.InputStream} will read data from another
1349-
* <tt>java.io.InputStream</tt>, given in the constructor,
1349+
* {@link java.io.InputStream}, given in the constructor,
13501350
* and encode/decode to/from Base64 notation on the fly.
13511351
*
13521352
* @see Base64
@@ -1369,7 +1369,7 @@ public static class InputStream extends java.io.FilterInputStream
13691369
/**
13701370
* Constructs a {@link Base64.InputStream} in DECODE mode.
13711371
*
1372-
* @param in the <tt>java.io.InputStream</tt> from which to read data.
1372+
* @param in the {@link java.io.InputStream} from which to read data.
13731373
* @since 1.3
13741374
*/
13751375
public InputStream( java.io.InputStream in )
@@ -1392,7 +1392,7 @@ public InputStream( java.io.InputStream in )
13921392
* Example: <code>new Base64.InputStream( in, Base64.DECODE )</code>
13931393
*
13941394
*
1395-
* @param in the <tt>java.io.InputStream</tt> from which to read data.
1395+
* @param in the {@link java.io.InputStream} from which to read data.
13961396
* @param options Specified options
13971397
* @see Base64#ENCODE
13981398
* @see Base64#DECODE
@@ -1582,7 +1582,7 @@ else if( i == 0 )
15821582

15831583
/**
15841584
* A {@link Base64.OutputStream} will write data to another
1585-
* <tt>java.io.OutputStream</tt>, given in the constructor,
1585+
* {@link java.io.OutputStream}, given in the constructor,
15861586
* and encode/decode to/from Base64 notation on the fly.
15871587
*
15881588
* @see Base64
@@ -1605,7 +1605,7 @@ public static class OutputStream extends java.io.FilterOutputStream
16051605
/**
16061606
* Constructs a {@link Base64.OutputStream} in ENCODE mode.
16071607
*
1608-
* @param out the <tt>java.io.OutputStream</tt> to which data will be written.
1608+
* @param out the {@link java.io.OutputStream} to which data will be written.
16091609
* @since 1.3
16101610
*/
16111611
public OutputStream( java.io.OutputStream out )
@@ -1627,7 +1627,7 @@ public OutputStream( java.io.OutputStream out )
16271627
* <p>
16281628
* Example: <code>new Base64.OutputStream( out, Base64.ENCODE )</code>
16291629
*
1630-
* @param out the <tt>java.io.OutputStream</tt> to which data will be written.
1630+
* @param out the {@link java.io.OutputStream} to which data will be written.
16311631
* @param options Specified options.
16321632
* @see Base64#ENCODE
16331633
* @see Base64#DECODE

0 commit comments

Comments
 (0)