2
2
* <p>Encodes and decodes to and from Base64 notation.</p>
3
3
* <p>Homepage: <a href="http://iharder.net/base64">http://iharder.net/base64</a>.</p>
4
4
*
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
6
6
* several pieces of information to the encoder. In the "higher level" methods such as
7
7
* encodeBytes( bytes, options ) the options parameter can be used to indicate such
8
8
* things as first gzipping the bytes before encoding them, not inserting linefeeds
53
53
* when data that's being decoded is gzip-compressed and will decompress it
54
54
* automatically. Generally things are cleaner. You'll probably have to
55
55
* 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>
57
57
* <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 )} .
59
59
* Added the ability to "suspend" encoding in the Output Stream so
60
60
* you can turn on and off the encoding if you need to embed base64
61
61
* data in an otherwise "normal" stream (like an XML file).</li>
@@ -524,7 +524,7 @@ private static byte[] encode3to4(
524
524
* Serializes an object and returns the Base64-encoded
525
525
* version of that serialized object. If the object
526
526
* cannot be serialized or there is another error,
527
- * the method will return <tt> null</tt> .
527
+ * the method will return null.
528
528
* The object is not GZip-compressed before being encoded.
529
529
*
530
530
* @param serializableObject The object to encode
@@ -542,7 +542,7 @@ public static String encodeObject( java.io.Serializable serializableObject )
542
542
* Serializes an object and returns the Base64-encoded
543
543
* version of that serialized object. If the object
544
544
* cannot be serialized or there is another error,
545
- * the method will return <tt> null</tt> .
545
+ * the method will return null.
546
546
* <p>
547
547
* Valid options:<pre>
548
548
* GZIP: gzip-compresses object before encoding it.
@@ -1049,7 +1049,7 @@ public static byte[] decode( String s, int options )
1049
1049
1050
1050
/**
1051
1051
* 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.
1053
1053
*
1054
1054
* @param encodedObject The Base64 data to decode
1055
1055
* @return The decoded and deserialized object
@@ -1097,7 +1097,7 @@ public static Object decodeToObject( String encodedObject )
1097
1097
*
1098
1098
* @param dataToEncode byte array of data to encode in base64 form
1099
1099
* @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
1101
1101
*
1102
1102
* @since 2.1
1103
1103
*/
@@ -1131,7 +1131,7 @@ public static boolean encodeToFile( byte[] dataToEncode, String filename )
1131
1131
*
1132
1132
* @param dataToDecode Base64-encoded data as a string
1133
1133
* @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
1135
1135
*
1136
1136
* @since 2.1
1137
1137
*/
@@ -1268,7 +1268,7 @@ public static String encodeFromFile( String filename )
1268
1268
1269
1269
1270
1270
/**
1271
- * Reads <tt> infile</tt> and encodes it to <tt> outfile</tt> .
1271
+ * Reads infile and encodes it to outfile.
1272
1272
*
1273
1273
* @param infile Input file
1274
1274
* @param outfile Output file
@@ -1305,7 +1305,7 @@ public static boolean encodeFileToFile( String infile, String outfile )
1305
1305
1306
1306
1307
1307
/**
1308
- * Reads <tt> infile</tt> and decodes it to <tt> outfile</tt> .
1308
+ * Reads infile and decodes it to outfile.
1309
1309
*
1310
1310
* @param infile Input file
1311
1311
* @param outfile Output file
@@ -1346,7 +1346,7 @@ public static boolean decodeFileToFile( String infile, String outfile )
1346
1346
1347
1347
/**
1348
1348
* 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,
1350
1350
* and encode/decode to/from Base64 notation on the fly.
1351
1351
*
1352
1352
* @see Base64
@@ -1369,7 +1369,7 @@ public static class InputStream extends java.io.FilterInputStream
1369
1369
/**
1370
1370
* Constructs a {@link Base64.InputStream} in DECODE mode.
1371
1371
*
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.
1373
1373
* @since 1.3
1374
1374
*/
1375
1375
public InputStream ( java .io .InputStream in )
@@ -1392,7 +1392,7 @@ public InputStream( java.io.InputStream in )
1392
1392
* Example: <code>new Base64.InputStream( in, Base64.DECODE )</code>
1393
1393
*
1394
1394
*
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.
1396
1396
* @param options Specified options
1397
1397
* @see Base64#ENCODE
1398
1398
* @see Base64#DECODE
@@ -1582,7 +1582,7 @@ else if( i == 0 )
1582
1582
1583
1583
/**
1584
1584
* 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,
1586
1586
* and encode/decode to/from Base64 notation on the fly.
1587
1587
*
1588
1588
* @see Base64
@@ -1605,7 +1605,7 @@ public static class OutputStream extends java.io.FilterOutputStream
1605
1605
/**
1606
1606
* Constructs a {@link Base64.OutputStream} in ENCODE mode.
1607
1607
*
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.
1609
1609
* @since 1.3
1610
1610
*/
1611
1611
public OutputStream ( java .io .OutputStream out )
@@ -1627,7 +1627,7 @@ public OutputStream( java.io.OutputStream out )
1627
1627
* <p>
1628
1628
* Example: <code>new Base64.OutputStream( out, Base64.ENCODE )</code>
1629
1629
*
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.
1631
1631
* @param options Specified options.
1632
1632
* @see Base64#ENCODE
1633
1633
* @see Base64#DECODE
0 commit comments