File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/test/java/com/stringcompressor Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ public void usageExample() {
22
22
// A string to be compressed. Whenever possible, prefer working directly with byte[] to avoid creating String objects.
23
23
byte [] inputStr = "HELLO-COMPRESSOR" .getBytes (US_ASCII );
24
24
25
- // Creates a compressor with the default supported character set.
25
+ // Creates a compressor with the default supported character set (see FiveBitAsciiCompressor.DEFAULT_5BIT_CHARSET) .
26
26
AsciiCompressor compressor = new FiveBitAsciiCompressor ();
27
- // Creates a compressor with a custom charset (see FiveBitAsciiCompressor.DEFAULT_5BIT_CHARSET)
27
+ // Creates a compressor with a custom charset.
28
28
// AsciiCompressor customCharsetCompressor = new FiveBitAsciiCompressor(new byte[]{/* custom charset */});
29
29
30
30
// Throws an exception when invalid characters are present; useful for debugging purposes.
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ public void usageExample() {
22
22
// A string to be compressed. Whenever possible, prefer working directly with byte[] to avoid creating String objects.
23
23
byte [] inputStr = "0123456789" .getBytes (US_ASCII );
24
24
25
- // Creates a compressor with the default supported character set.
25
+ // Creates a compressor with the default supported character set (see FourBitAsciiCompressor.DEFAULT_4BIT_CHARSET) .
26
26
AsciiCompressor compressor = new FourBitAsciiCompressor ();
27
- // Creates a compressor with a custom charset (see FourBitAsciiCompressor.DEFAULT_4BIT_CHARSET) .
27
+ // Creates a compressor with a custom charset.
28
28
// AsciiCompressor customCharsetCompressor = new FourBitAsciiCompressor(new byte[]{/* custom charset */});
29
29
30
30
// Throws an exception when invalid characters are present; useful for debugging purposes.
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ public void usageExample() {
22
22
// A string to be compressed. Whenever possible, prefer working directly with byte[] to avoid creating String objects.
23
23
byte [] inputStr = "HELLO, COMPRESSOR" .getBytes (US_ASCII );
24
24
25
- // Creates a compressor with the default supported character set.
25
+ // Creates a compressor with the default supported character set (see SixBitAsciiCompressor.DEFAULT_6BIT_CHARSET) .
26
26
AsciiCompressor compressor = new SixBitAsciiCompressor ();
27
- // Creates a compressor with a custom charset (see SixBitAsciiCompressor.DEFAULT_6BIT_CHARSET) .
27
+ // Creates a compressor with a custom charset.
28
28
// AsciiCompressor customCharsetCompressor = new SixBitAsciiCompressor(new byte[]{/* custom charset */});
29
29
30
30
// Throws an exception when invalid characters are present; useful for debugging purposes.
You can’t perform that action at this time.
0 commit comments