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() {
2222 // A string to be compressed. Whenever possible, prefer working directly with byte[] to avoid creating String objects.
2323 byte [] inputStr = "HELLO-COMPRESSOR" .getBytes (US_ASCII );
2424
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) .
2626 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.
2828// AsciiCompressor customCharsetCompressor = new FiveBitAsciiCompressor(new byte[]{/* custom charset */});
2929
3030 // 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() {
2222 // A string to be compressed. Whenever possible, prefer working directly with byte[] to avoid creating String objects.
2323 byte [] inputStr = "0123456789" .getBytes (US_ASCII );
2424
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) .
2626 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.
2828// AsciiCompressor customCharsetCompressor = new FourBitAsciiCompressor(new byte[]{/* custom charset */});
2929
3030 // 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() {
2222 // A string to be compressed. Whenever possible, prefer working directly with byte[] to avoid creating String objects.
2323 byte [] inputStr = "HELLO, COMPRESSOR" .getBytes (US_ASCII );
2424
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) .
2626 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.
2828// AsciiCompressor customCharsetCompressor = new SixBitAsciiCompressor(new byte[]{/* custom charset */});
2929
3030 // Throws an exception when invalid characters are present; useful for debugging purposes.
You can’t perform that action at this time.
0 commit comments