public class ExtendedDataInputStream extends DataInputStream
DataInputStream providing more operations.| Constructor and Description |
|---|
ExtendedDataInputStream(InputStream in)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
readUnsigned3ByteInt()
Read an unsigned integer from the contained input stream.
|
long |
readUnsignedInt()
Read an unsigned integer from the contained input stream.
|
void |
skipFully(long n)
Skips over and discards
n bytes of data from the input stream. |
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesavailable, close, mark, markSupported, read, reset, skippublic ExtendedDataInputStream(InputStream in)
in - the stream to wrappublic long readUnsignedInt()
throws IOException
IOException - if an I/O error occursEOFException - if this input stream reaches the end before reading four bytespublic int readUnsigned3ByteInt()
throws IOException
IOException - if an I/O error occursEOFException - if this input stream reaches the end before reading three bytespublic void skipFully(long n)
throws IOException
n bytes of data from the input stream. This method attempts to
fully skip the number of bytes specified.n - the number of bytes to be skippedIOException - if an I/O error occursEOFException - if this input stream reaches the end before skipping the given number of bytesCopyright © 2010 - 2020 Adobe. All Rights Reserved