Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class CompressedDataInputStream extends DataInputStream
in| Constructor and Description |
|---|
CompressedDataInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
readCompressedInt()
Reads a compressed integer from the stream.
|
static int |
readCompressedInt(InputStream in)
Reads a compressed integer from the stream.
|
String |
readCompressedUTF() |
String |
readLongUTF()
Reads a string of any length.
|
<T extends Enum<T>> |
readNullEnum(Class<T> enumType) |
Integer |
readNullInteger() |
Long |
readNullLong() |
String |
readNullLongUTF()
Reads a string of any length, supporting
null. |
String |
readNullUTF() |
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesavailable, close, mark, markSupported, read, reset, skippublic CompressedDataInputStream(InputStream in)
public static int readCompressedInt(InputStream in) throws IOException
5 bit - 000SXXXX 13 bit - 001SXXXX XXXXXXXX 22 bit - 01SXXXXX XXXXXXXX XXXXXXXX 31 bit - 1SXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
EOFException - if the end of file is reachedIOExceptionpublic int readCompressedInt()
throws IOException
5 bit - 000SXXXX 13 bit - 001SXXXX XXXXXXXX 22 bit - 01SXXXXX XXXXXXXX XXXXXXXX 31 bit - 1SXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
EOFException - if the end of file is reachedIOExceptionpublic String readCompressedUTF() throws IOException
EOFException - if the end of file is reachedIOExceptionpublic String readNullUTF() throws IOException
IOExceptionpublic String readLongUTF() throws IOException
IOExceptionpublic String readNullLongUTF() throws IOException
null.IOExceptionpublic Integer readNullInteger() throws IOException
IOExceptionpublic <T extends Enum<T>> T readNullEnum(Class<T> enumType) throws IOException
IOExceptionpublic Long readNullLong() throws IOException
IOExceptionCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.