Skip to content

Commit 0b9bd57

Browse files
committed
Javadoc
1 parent 855c6b1 commit 0b9bd57

14 files changed

+154
-185
lines changed

src/main/java/org/apache/commons/codec/binary/Base16.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
* alphabet.
3737
* </p>
3838
*
39+
* @see Base16InputStream
40+
* @see Base16OutputStream
3941
* @see <a href="https://tools.ietf.org/html/rfc4648#section-8">RFC 4648 - 8. Base 16 Encoding</a>
4042
* @since 1.15
4143
*/

src/main/java/org/apache/commons/codec/binary/Base16InputStream.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* {@link Base16OutputStream} is to ENCODE, but this behavior can be overridden by using a different constructor.
2929
* </p>
3030
*
31+
* @see Base16
3132
* @since 1.15
3233
*/
3334
public class Base16InputStream extends BaseNCodecInputStream {

src/main/java/org/apache/commons/codec/binary/Base16OutputStream.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* {@link Base16InputStream} is to DECODE. But this behavior can be overridden by using a different constructor.
2929
* </p>
3030
*
31+
* @see Base16
3132
* @since 1.15
3233
*/
3334
public class Base16OutputStream extends BaseNCodecOutputStream {

src/main/java/org/apache/commons/codec/binary/Base32.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
* .get()
5252
* </pre>
5353
*
54+
* @see Base32InputStream
55+
* @see Base32OutputStream
5456
* @see <a href="http://www.ietf.org/rfc/rfc4648.txt">RFC 4648</a>
5557
* @since 1.5
5658
*/

src/main/java/org/apache/commons/codec/binary/Base32InputStream.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
* the original, i.e. no changes occur on the final character. This requires that the input bytes use the same padding
5050
* and alphabet as the encoder.
5151
* </p>
52+
*
53+
* @see Base32
5254
* @see <a href="http://www.ietf.org/rfc/rfc4648.txt">RFC 4648</a>
5355
* @since 1.5
5456
*/

src/main/java/org/apache/commons/codec/binary/Base32OutputStream.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
* the original, i.e. no changes occur on the final character. This requires that the input bytes use the same padding
5454
* and alphabet as the encoder.
5555
* </p>
56+
*
57+
* @see Base32
5658
* @see <a href="http://www.ietf.org/rfc/rfc4648.txt">RFC 4648</a>
5759
* @since 1.5
5860
*/

src/main/java/org/apache/commons/codec/binary/Base64.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
* .get()
6565
* </pre>
6666
*
67+
* @see Base64InputStream
68+
* @see Base64OutputStream
6769
* @see <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>
6870
* @since 1.0
6971
*/

src/main/java/org/apache/commons/codec/binary/Base64InputStream.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
* the original, i.e. no changes occur on the final character. This requires that the input bytes use the same padding
5454
* and alphabet as the encoder.
5555
* </p>
56+
*
57+
* @see Base64
5658
* @see <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>
5759
* @since 1.4
5860
*/

src/main/java/org/apache/commons/codec/binary/Base64OutputStream.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
* the original, i.e. no changes occur on the final character. This requires that the input bytes use the same padding
5858
* and alphabet as the encoder.
5959
* </p>
60+
*
61+
* @see Base64
6062
* @see <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>
6163
* @since 1.4
6264
*/

src/main/java/org/apache/commons/codec/binary/BaseNCodecInputStream.java

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public class BaseNCodecInputStream extends FilterInputStream {
4646
/**
4747
* Constructs a new instance.
4848
*
49-
* @param inputStream the input stream
50-
* @param baseNCodec the codec
51-
* @param doEncode set to true to perform encoding, else decoding
49+
* @param inputStream the input stream.
50+
* @param baseNCodec the codec.
51+
* @param doEncode set to true to perform encoding, else decoding.
5252
*/
5353
protected BaseNCodecInputStream(final InputStream inputStream, final BaseNCodec baseNCodec, final boolean doEncode) {
5454
super(inputStream);
@@ -60,8 +60,7 @@ protected BaseNCodecInputStream(final InputStream inputStream, final BaseNCodec
6060
/**
6161
* {@inheritDoc}
6262
*
63-
* @return {@code 0} if the {@link InputStream} has reached {@code EOF},
64-
* {@code 1} otherwise
63+
* @return {@code 0} if the {@link InputStream} has reached {@code EOF}, {@code 1} otherwise.
6564
* @since 1.7
6665
*/
6766
@Override
@@ -82,7 +81,7 @@ public int available() throws IOException {
8281
* into 8-bit bytes and discard the remainder.
8382
* </p>
8483
*
85-
* @return true if using strict decoding
84+
* @return true if using strict decoding.
8685
* @since 1.15
8786
*/
8887
public boolean isStrictDecoding() {
@@ -118,8 +117,7 @@ public boolean markSupported() {
118117
* Reads one {@code byte} from this input stream.
119118
*
120119
* @return the byte as an integer in the range 0 to 255. Returns -1 if EOF has been reached.
121-
* @throws IOException
122-
* if an I/O error occurs.
120+
* @throws IOException if an I/O error occurs.
123121
*/
124122
@Override
125123
public int read() throws IOException {
@@ -135,23 +133,15 @@ public int read() throws IOException {
135133
}
136134

137135
/**
138-
* Attempts to read {@code len} bytes into the specified {@code b} array starting at {@code offset}
139-
* from this InputStream.
136+
* Attempts to read {@code len} bytes into the specified {@code b} array starting at {@code offset} from this InputStream.
140137
*
141-
* @param array
142-
* destination byte array
143-
* @param offset
144-
* where to start writing the bytes
145-
* @param len
146-
* maximum number of bytes to read
147-
*
148-
* @return number of bytes read
149-
* @throws IOException
150-
* if an I/O error occurs.
151-
* @throws NullPointerException
152-
* if the byte array parameter is null
153-
* @throws IndexOutOfBoundsException
154-
* if offset, len or buffer size are invalid
138+
* @param array destination byte array.
139+
* @param offset where to start writing the bytes.
140+
* @param len maximum number of bytes to read.
141+
* @return number of bytes read.
142+
* @throws IOException if an I/O error occurs.
143+
* @throws NullPointerException if the byte array parameter is null.
144+
* @throws IndexOutOfBoundsException if offset, len or buffer size are invalid.
155145
*/
156146
@Override
157147
public int read(final byte[] array, final int offset, final int len) throws IOException {
@@ -207,7 +197,7 @@ public int read(final byte[] array, final int offset, final int len) throws IOEx
207197
* The {@link #reset} method of {@link BaseNCodecInputStream} does nothing except throw an {@link IOException}.
208198
* </p>
209199
*
210-
* @throws IOException if this method is invoked
200+
* @throws IOException if this method is invoked.
211201
* @since 1.7
212202
*/
213203
@Override
@@ -218,7 +208,7 @@ public synchronized void reset() throws IOException {
218208
/**
219209
* {@inheritDoc}
220210
*
221-
* @throws IllegalArgumentException if the provided skip length is negative
211+
* @throws IllegalArgumentException if the provided skip length is negative.
222212
* @since 1.7
223213
*/
224214
@Override

0 commit comments

Comments
 (0)