|
PDF Clown 0.0.8 |
|||||||||
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 from the stream and advances the position within the stream. |
void |
read(byte[] data,
int offset,
int length)
Reads a sequence of bytes from the stream and advances the position within the stream. |
byte |
readByte()
Reads a byte from the stream and advances the position within the stream. |
int |
readInt()
Reads an integer from the stream and advances the position within the stream. |
String |
readLine()
Reads the next line of text. |
short |
readShort()
Reads a short integer from the stream and advances the position within the stream. |
String |
readString(int length)
Reads a string from the stream and advances the position within the stream. |
int |
readUnsignedByte()
Reads an unsigned byte integer from the stream and advances the position within the stream. |
int |
readUnsignedShort()
Reads an unsigned short integer from the stream and advances the position within the stream. |
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. |
byte[] |
toByteArray()
Gets the buffer data copied to a newly-allocated byte array. |
Methods inherited from interface it.stefanochizzolini.clown.bytes.IStream |
---|
getLength |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
ByteOrder getByteOrder()
long getPosition()
int hashCode()
hashCode
in class Object
void read(byte[] data) throws EOFException
data
- Target byte array.
EOFException
void read(byte[] data, int offset, int length) throws EOFException
data
- Target byte array.offset
- Location in the byte array at which storing begins.length
- Number of bytes to copy.
EOFException
byte readByte() throws EOFException
EOFException
int readInt() throws EOFException
EOFException
String readLine() throws EOFException
EOFException
short readShort() throws EOFException
EOFException
String readString(int length) throws EOFException
length
- Number of bytes to read.
EOFException
int readUnsignedByte() throws EOFException
EOFException
int readUnsignedShort() throws EOFException
EOFException
void seek(long position)
void setByteOrder(ByteOrder value)
void setPosition(long value)
void skip(long offset)
byte[] toByteArray()
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |