TMI-84: LZWDecoder fixes for > 12 bit exception when using full 12 bit (4096 entries) table

This commit is contained in:
Harald Kuhr
2014-12-04 16:51:37 +01:00
parent 9539e8e2e5
commit 27b2ff3745
4 changed files with 26 additions and 31 deletions

View File

@@ -57,9 +57,10 @@ public interface Decoder {
* @return the total number of bytes read into the buffer, or {@code 0}
* if there is no more data because the end of the stream has been reached.
*
* @throws DecodeException if encoded data is corrupt
* @throws IOException if an I/O error occurs
* @throws java.io.EOFException if a premature end-of-file is encountered
* @throws DecodeException if encoded data is corrupt.
* @throws IOException if an I/O error occurs.
* @throws java.io.EOFException if a premature end-of-file is encountered.
* @throws java.lang.NullPointerException if either argument is {@code null}.
*/
int decode(InputStream stream, ByteBuffer buffer) throws IOException;
}