Package com.adobe.internal.io
Class ExtendedDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
com.adobe.internal.io.ExtendedDataInputStream
- All Implemented Interfaces:
Closeable,DataInput,AutoCloseable
An extension of the
DataInputStream providing more operations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintRead an unsigned integer from the contained input stream.longRead an unsigned integer from the contained input stream.voidskipFully(long n) Skips over and discardsnbytes of data from the input stream.Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesMethods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ExtendedDataInputStream
Constructor.- Parameters:
in- the stream to wrap
-
-
Method Details
-
readUnsignedInt
Read an unsigned integer from the contained input stream.- Returns:
- the next four bytes of this input stream, interpreted as an unsigned 32-bit integer
- Throws:
IOException- if an I/O error occursEOFException- if this input stream reaches the end before reading four bytes
-
readUnsigned3ByteInt
Read an unsigned integer from the contained input stream.- Returns:
- the next three bytes of this input stream, interpreted as an unsigned 24-bit integer
- Throws:
IOException- if an I/O error occursEOFException- if this input stream reaches the end before reading three bytes
-
skipFully
Skips over and discardsnbytes of data from the input stream. This method attempts to fully skip the number of bytes specified.- Parameters:
n- the number of bytes to be skipped- Throws:
IOException- if an I/O error occursEOFException- if this input stream reaches the end before skipping the given number of bytes
-