Skip to content

Commit b9e6d69

Browse files
committed
Javadoc
1 parent d35d3e7 commit b9e6d69

12 files changed

Lines changed: 55 additions & 44 deletions

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ public class Base16 extends BaseNCodec {
114114
private final byte[] encodeTable;
115115

116116
/**
117-
* Creates a Base16 codec used for decoding and encoding.
117+
* Constructs a Base16 codec used for decoding and encoding.
118118
*/
119119
public Base16() {
120120
this(false);
121121
}
122122

123123
/**
124-
* Creates a Base16 codec used for decoding and encoding.
124+
* Constructs a Base16 codec used for decoding and encoding.
125125
*
126126
* @param lowerCase if {@code true} then use a lower-case Base16 alphabet.
127127
*/
@@ -130,7 +130,7 @@ public Base16(final boolean lowerCase) {
130130
}
131131

132132
/**
133-
* Creates a Base16 codec used for decoding and encoding.
133+
* Constructs a Base16 codec used for decoding and encoding.
134134
*
135135
* @param lowerCase if {@code true} then use a lower-case Base16 alphabet.
136136
* @param decodingPolicy Decoding policy.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public class Base16InputStream extends BaseNCodecInputStream {
3434

3535
/**
36-
* Creates a Base16InputStream such that all data read is Base16-decoded from the original provided InputStream.
36+
* Constructs a Base16InputStream such that all data read is Base16-decoded from the original provided InputStream.
3737
*
3838
* @param inputStream InputStream to wrap.
3939
*/
@@ -42,7 +42,7 @@ public Base16InputStream(final InputStream inputStream) {
4242
}
4343

4444
/**
45-
* Creates a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original
45+
* Constructs a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original
4646
* provided InputStream.
4747
*
4848
* @param inputStream InputStream to wrap.
@@ -53,7 +53,7 @@ public Base16InputStream(final InputStream inputStream, final boolean doEncode)
5353
}
5454

5555
/**
56-
* Creates a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original
56+
* Constructs a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original
5757
* provided InputStream.
5858
*
5959
* @param inputStream InputStream to wrap.
@@ -66,7 +66,7 @@ public Base16InputStream(final InputStream inputStream, final boolean doEncode,
6666
}
6767

6868
/**
69-
* Creates a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original
69+
* Constructs a Base16InputStream such that all data read is either Base16-encoded or Base16-decoded from the original
7070
* provided InputStream.
7171
*
7272
* @param inputStream InputStream to wrap.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public class Base16OutputStream extends BaseNCodecOutputStream {
3434

3535
/**
36-
* Creates a Base16OutputStream such that all data written is Hex-encoded to the original provided OutputStream.
36+
* Constructs a Base16OutputStream such that all data written is Hex-encoded to the original provided OutputStream.
3737
*
3838
* @param outputStream OutputStream to wrap.
3939
*/
@@ -42,7 +42,7 @@ public Base16OutputStream(final OutputStream outputStream) {
4242
}
4343

4444
/**
45-
* Creates a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the
45+
* Constructs a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the
4646
* original provided OutputStream.
4747
*
4848
* @param outputStream OutputStream to wrap.
@@ -53,7 +53,7 @@ public Base16OutputStream(final OutputStream outputStream, final boolean doEncod
5353
}
5454

5555
/**
56-
* Creates a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the
56+
* Constructs a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the
5757
* original provided OutputStream.
5858
*
5959
* @param outputStream OutputStream to wrap.
@@ -65,7 +65,7 @@ public Base16OutputStream(final OutputStream outputStream, final boolean doEncod
6565
}
6666

6767
/**
68-
* Creates a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the
68+
* Constructs a Base16OutputStream such that all data written is either Hex-encoded or Hex-decoded to the
6969
* original provided OutputStream.
7070
*
7171
* @param outputStream OutputStream to wrap.

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public class Base32 extends BaseNCodec {
154154
private final byte[] lineSeparator;
155155

156156
/**
157-
* Creates a Base32 codec used for decoding and encoding.
157+
* Constructs a Base32 codec used for decoding and encoding.
158158
* <p>
159159
* When encoding the line length is 0 (no chunking).
160160
* </p>
@@ -164,7 +164,7 @@ public Base32() {
164164
}
165165

166166
/**
167-
* Creates a Base32 codec used for decoding and encoding.
167+
* Constructs a Base32 codec used for decoding and encoding.
168168
* <p>
169169
* When encoding the line length is 0 (no chunking).
170170
* </p>
@@ -176,7 +176,7 @@ public Base32(final boolean useHex) {
176176
}
177177

178178
/**
179-
* Creates a Base32 codec used for decoding and encoding.
179+
* Constructs a Base32 codec used for decoding and encoding.
180180
* <p>
181181
* When encoding the line length is 0 (no chunking).
182182
* </p>
@@ -189,7 +189,7 @@ public Base32(final boolean useHex, final byte padding) {
189189
}
190190

191191
/**
192-
* Creates a Base32 codec used for decoding and encoding.
192+
* Constructs a Base32 codec used for decoding and encoding.
193193
* <p>
194194
* When encoding the line length is 0 (no chunking).
195195
* </p>
@@ -201,7 +201,7 @@ public Base32(final byte pad) {
201201
}
202202

203203
/**
204-
* Creates a Base32 codec used for decoding and encoding.
204+
* Constructs a Base32 codec used for decoding and encoding.
205205
* <p>
206206
* When encoding the line length is given in the constructor, the line separator is CRLF.
207207
* </p>
@@ -214,7 +214,7 @@ public Base32(final int lineLength) {
214214
}
215215

216216
/**
217-
* Creates a Base32 codec used for decoding and encoding.
217+
* Constructs a Base32 codec used for decoding and encoding.
218218
* <p>
219219
* When encoding the line length and line separator are given in the constructor.
220220
* </p>
@@ -232,7 +232,7 @@ public Base32(final int lineLength, final byte[] lineSeparator) {
232232
}
233233

234234
/**
235-
* Creates a Base32 / Base32 Hex codec used for decoding and encoding.
235+
* Constructs a Base32 / Base32 Hex codec used for decoding and encoding.
236236
* <p>
237237
* When encoding the line length and line separator are given in the constructor.
238238
* </p>
@@ -251,7 +251,7 @@ public Base32(final int lineLength, final byte[] lineSeparator, final boolean us
251251
}
252252

253253
/**
254-
* Creates a Base32 / Base32 Hex codec used for decoding and encoding.
254+
* Constructs a Base32 / Base32 Hex codec used for decoding and encoding.
255255
* <p>
256256
* When encoding the line length and line separator are given in the constructor.
257257
* </p>
@@ -271,7 +271,7 @@ public Base32(final int lineLength, final byte[] lineSeparator, final boolean us
271271
}
272272

273273
/**
274-
* Creates a Base32 / Base32 Hex codec used for decoding and encoding.
274+
* Constructs a Base32 / Base32 Hex codec used for decoding and encoding.
275275
* <p>
276276
* When encoding the line length and line separator are given in the constructor.
277277
* </p>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
public class Base32InputStream extends BaseNCodecInputStream {
5656

5757
/**
58-
* Creates a Base32InputStream such that all data read is Base32-decoded from the original provided InputStream.
58+
* Constructs a Base32InputStream such that all data read is Base32-decoded from the original provided InputStream.
5959
*
6060
* @param inputStream
6161
* InputStream to wrap.
@@ -65,7 +65,7 @@ public Base32InputStream(final InputStream inputStream) {
6565
}
6666

6767
/**
68-
* Creates a Base32InputStream such that all data read is either Base32-encoded or Base32-decoded from the original
68+
* Constructs a Base32InputStream such that all data read is either Base32-encoded or Base32-decoded from the original
6969
* provided InputStream.
7070
*
7171
* @param inputStream
@@ -78,7 +78,7 @@ public Base32InputStream(final InputStream inputStream, final boolean doEncode)
7878
}
7979

8080
/**
81-
* Creates a Base32InputStream such that all data read is either Base32-encoded or Base32-decoded from the original
81+
* Constructs a Base32InputStream such that all data read is either Base32-encoded or Base32-decoded from the original
8282
* provided InputStream.
8383
*
8484
* @param inputStream
@@ -98,7 +98,7 @@ public Base32InputStream(final InputStream inputStream, final boolean doEncode,
9898
}
9999

100100
/**
101-
* Creates a Base32InputStream such that all data read is either Base32-encoded or Base32-decoded from the original
101+
* Constructs a Base32InputStream such that all data read is either Base32-encoded or Base32-decoded from the original
102102
* provided InputStream.
103103
*
104104
* @param inputStream

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
public class Base32OutputStream extends BaseNCodecOutputStream {
6060

6161
/**
62-
* Creates a Base32OutputStream such that all data written is Base32-encoded to the original provided OutputStream.
62+
* Constructs a Base32OutputStream such that all data written is Base32-encoded to the original provided OutputStream.
6363
*
6464
* @param outputStream
6565
* OutputStream to wrap.
@@ -69,7 +69,7 @@ public Base32OutputStream(final OutputStream outputStream) {
6969
}
7070

7171
/**
72-
* Creates a Base32OutputStream such that all data written is either Base32-encoded or Base32-decoded to the
72+
* Constructs a Base32OutputStream such that all data written is either Base32-encoded or Base32-decoded to the
7373
* original provided OutputStream.
7474
*
7575
* @param outputStream
@@ -82,7 +82,7 @@ public Base32OutputStream(final OutputStream outputStream, final boolean doEncod
8282
}
8383

8484
/**
85-
* Creates a Base32OutputStream such that all data written is either Base32-encoded or Base32-decoded to the
85+
* Constructs a Base32OutputStream such that all data written is either Base32-encoded or Base32-decoded to the
8686
* original provided OutputStream.
8787
*
8888
* @param outputStream
@@ -102,7 +102,7 @@ public Base32OutputStream(final OutputStream outputStream, final boolean doEncod
102102
}
103103

104104
/**
105-
* Creates a Base32OutputStream such that all data written is either Base32-encoded or Base32-decoded to the
105+
* Constructs a Base32OutputStream such that all data written is either Base32-encoded or Base32-decoded to the
106106
* original provided OutputStream.
107107
*
108108
* @param outputStream

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ private static byte[] toUrlSafeEncodeTable(final boolean urlSafe) {
529529
private final int encodeSize;
530530

531531
/**
532-
* Creates a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
532+
* Constructs a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
533533
* <p>
534534
* When encoding the line length is 0 (no chunking), and the encoding table is STANDARD_ENCODE_TABLE.
535535
* </p>
@@ -543,7 +543,7 @@ public Base64() {
543543
}
544544

545545
/**
546-
* Creates a Base64 codec used for decoding (all modes) and encoding in the given URL-safe mode.
546+
* Constructs a Base64 codec used for decoding (all modes) and encoding in the given URL-safe mode.
547547
* <p>
548548
* When encoding the line length is 76, the line separator is CRLF, and the encoding table is STANDARD_ENCODE_TABLE.
549549
* </p>
@@ -562,7 +562,7 @@ public Base64(final boolean urlSafe) {
562562
}
563563

564564
/**
565-
* Creates a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
565+
* Constructs a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
566566
* <p>
567567
* When encoding the line length is given in the constructor, the line separator is CRLF, and the encoding table is
568568
* STANDARD_ENCODE_TABLE.
@@ -586,7 +586,7 @@ public Base64(final int lineLength) {
586586

587587

588588
/**
589-
* Creates a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
589+
* Constructs a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
590590
* <p>
591591
* When encoding the line length and line separator are given in the constructor, and the encoding table is
592592
* STANDARD_ENCODE_TABLE.
@@ -613,7 +613,7 @@ public Base64(final int lineLength, final byte[] lineSeparator) {
613613
}
614614

615615
/**
616-
* Creates a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
616+
* Constructs a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
617617
* <p>
618618
* When encoding the line length and line separator are given in the constructor, and the encoding table is
619619
* STANDARD_ENCODE_TABLE.
@@ -644,7 +644,7 @@ public Base64(final int lineLength, final byte[] lineSeparator, final boolean ur
644644
}
645645

646646
/**
647-
* Creates a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
647+
* Constructs a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
648648
* <p>
649649
* When encoding the line length and line separator are given in the constructor, and the encoding table is
650650
* STANDARD_ENCODE_TABLE.
@@ -677,7 +677,7 @@ public Base64(final int lineLength, final byte[] lineSeparator, final boolean ur
677677
}
678678

679679
/**
680-
* Creates a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
680+
* Constructs a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.
681681
* <p>
682682
* When encoding the line length and line separator are given in the constructor, and the encoding table is
683683
* STANDARD_ENCODE_TABLE.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
public class Base64InputStream extends BaseNCodecInputStream {
6060

6161
/**
62-
* Creates a Base64InputStream such that all data read is Base64-decoded from the original provided InputStream.
62+
* Constructs a Base64InputStream such that all data read is Base64-decoded from the original provided InputStream.
6363
*
6464
* @param inputStream
6565
* InputStream to wrap.
@@ -69,7 +69,7 @@ public Base64InputStream(final InputStream inputStream) {
6969
}
7070

7171
/**
72-
* Creates a Base64InputStream such that all data read is either Base64-encoded or Base64-decoded from the original
72+
* Constructs a Base64InputStream such that all data read is either Base64-encoded or Base64-decoded from the original
7373
* provided InputStream.
7474
*
7575
* @param inputStream
@@ -82,7 +82,7 @@ public Base64InputStream(final InputStream inputStream, final boolean doEncode)
8282
}
8383

8484
/**
85-
* Creates a Base64InputStream such that all data read is either Base64-encoded or Base64-decoded from the original
85+
* Constructs a Base64InputStream such that all data read is either Base64-encoded or Base64-decoded from the original
8686
* provided InputStream.
8787
*
8888
* @param inputStream
@@ -102,7 +102,7 @@ public Base64InputStream(final InputStream inputStream, final boolean doEncode,
102102
}
103103

104104
/**
105-
* Creates a Base64InputStream such that all data read is either Base64-encoded or Base64-decoded from the original
105+
* Constructs a Base64InputStream such that all data read is either Base64-encoded or Base64-decoded from the original
106106
* provided InputStream.
107107
*
108108
* @param inputStream

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
public class Base64OutputStream extends BaseNCodecOutputStream {
6464

6565
/**
66-
* Creates a Base64OutputStream such that all data written is Base64-encoded to the original provided OutputStream.
66+
* Constructs a Base64OutputStream such that all data written is Base64-encoded to the original provided OutputStream.
6767
*
6868
* @param outputStream
6969
* OutputStream to wrap.
@@ -73,7 +73,7 @@ public Base64OutputStream(final OutputStream outputStream) {
7373
}
7474

7575
/**
76-
* Creates a Base64OutputStream such that all data written is either Base64-encoded or Base64-decoded to the
76+
* Constructs a Base64OutputStream such that all data written is either Base64-encoded or Base64-decoded to the
7777
* original provided OutputStream.
7878
*
7979
* @param outputStream
@@ -86,7 +86,7 @@ public Base64OutputStream(final OutputStream outputStream, final boolean doEncod
8686
}
8787

8888
/**
89-
* Creates a Base64OutputStream such that all data written is either Base64-encoded or Base64-decoded to the
89+
* Constructs a Base64OutputStream such that all data written is either Base64-encoded or Base64-decoded to the
9090
* original provided OutputStream.
9191
*
9292
* @param outputStream
@@ -106,7 +106,7 @@ public Base64OutputStream(final OutputStream outputStream, final boolean doEncod
106106
}
107107

108108
/**
109-
* Creates a Base64OutputStream such that all data written is either Base64-encoded or Base64-decoded to the
109+
* Constructs a Base64OutputStream such that all data written is either Base64-encoded or Base64-decoded to the
110110
* original provided OutputStream.
111111
*
112112
* @param outputStream

0 commit comments

Comments
 (0)