|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IInputStream
Input stream.
Its pivotal concept is the access pointer.
Method Summary | |
---|---|
ByteOrder |
getByteOrder()
Gets the byte order. |
long |
getPosition()
Gets the pointer position. |
int |
hashCode()
Gets the hash representation of the sequence. |
void |
read(byte[] data)
Reads a sequence of bytes. |
void |
read(byte[] data,
int offset,
int length)
Reads a sequence of bytes. |
byte |
readByte()
Reads a byte. |
int |
readInt()
Reads an integer. |
int |
readInt(int length)
Reads a variable-length integer. |
String |
readLine()
Reads the next line of text. |
short |
readShort()
Reads a short integer. |
String |
readString(int length)
Reads a string. |
int |
readUnsignedByte()
Reads an unsigned byte integer. |
int |
readUnsignedShort()
Reads an unsigned short integer. |
void |
seek(long position)
Sets the pointer absolute position. |
void |
setByteOrder(ByteOrder value)
Sets the byte order. |
void |
setPosition(long value)
Sets the pointer position. |
void |
skip(long offset)
Sets the pointer relative position. |
Methods inherited from interface org.pdfclown.bytes.IStream |
---|
getLength |
Methods inherited from interface java.io.Closeable |
---|
close |
Methods inherited from interface org.pdfclown.util.IDataWrapper |
---|
toByteArray |
Method Detail |
---|
ByteOrder getByteOrder()
long getPosition()
int hashCode()
hashCode
in class Object
void read(byte[] data) throws EOFException
This operation causes the stream pointer to advance after the read data.
data
- Target byte array.
EOFException
void read(byte[] data, int offset, int length) throws EOFException
This operation causes the stream pointer to advance after the read data.
data
- Target byte array.offset
- Location in the byte array at which storing begins.length
- Number of bytes to read.
EOFException
byte readByte() throws EOFException
This operation causes the stream pointer to advance after the read data.
EOFException
int readInt() throws EOFException
This operation causes the stream pointer to advance after the read data.
EOFException
int readInt(int length) throws EOFException
This operation causes the stream pointer to advance after the read data.
length
- Number of bytes to read.
EOFException
String readLine() throws EOFException
This operation causes the stream pointer to advance after the read data.
EOFException
short readShort() throws EOFException
This operation causes the stream pointer to advance after the read data.
EOFException
String readString(int length) throws EOFException
This operation causes the stream pointer to advance after the read data.
length
- Number of bytes to read.
EOFException
int readUnsignedByte() throws EOFException
This operation causes the stream pointer to advance after the read data.
EOFException
int readUnsignedShort() throws EOFException
This operation causes the stream pointer to advance after the read data.
EOFException
void seek(long position)
void setByteOrder(ByteOrder value)
void setPosition(long value)
void skip(long offset)
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |