|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfclown.bytes.FileInputStream
public final class FileInputStream
File stream.
Constructor Summary | |
---|---|
FileInputStream(RandomAccessFile file)
|
Method Summary | |
---|---|
void |
close()
|
protected void |
finalize()
|
ByteOrder |
getByteOrder()
Gets the byte order. |
long |
getLength()
Gets the length of the stream. |
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 offset)
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 class java.lang.Object |
---|
clone, equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileInputStream(RandomAccessFile file)
Method Detail |
---|
public ByteOrder getByteOrder()
IInputStream
getByteOrder
in interface IInputStream
public long getPosition()
IInputStream
getPosition
in interface IInputStream
public int hashCode()
IInputStream
hashCode
in interface IInputStream
hashCode
in class Object
public void read(byte[] data) throws EOFException
IInputStream
This operation causes the stream pointer to advance after the read data.
read
in interface IInputStream
data
- Target byte array.
EOFException
public void read(byte[] data, int offset, int length) throws EOFException
IInputStream
This operation causes the stream pointer to advance after the read data.
read
in interface IInputStream
data
- Target byte array.offset
- Location in the byte array at which storing begins.length
- Number of bytes to read.
EOFException
public byte readByte() throws EOFException
IInputStream
This operation causes the stream pointer to advance after the read data.
readByte
in interface IInputStream
EOFException
public int readInt() throws EOFException
IInputStream
This operation causes the stream pointer to advance after the read data.
readInt
in interface IInputStream
EOFException
public int readInt(int length) throws EOFException
IInputStream
This operation causes the stream pointer to advance after the read data.
readInt
in interface IInputStream
length
- Number of bytes to read.
EOFException
public String readLine() throws EOFException
IInputStream
This operation causes the stream pointer to advance after the read data.
readLine
in interface IInputStream
EOFException
public short readShort() throws EOFException
IInputStream
This operation causes the stream pointer to advance after the read data.
readShort
in interface IInputStream
EOFException
public String readString(int length) throws EOFException
IInputStream
This operation causes the stream pointer to advance after the read data.
readString
in interface IInputStream
length
- Number of bytes to read.
EOFException
public int readUnsignedByte() throws EOFException
IInputStream
This operation causes the stream pointer to advance after the read data.
readUnsignedByte
in interface IInputStream
EOFException
public int readUnsignedShort() throws EOFException
IInputStream
This operation causes the stream pointer to advance after the read data.
readUnsignedShort
in interface IInputStream
EOFException
public void seek(long offset)
IInputStream
seek
in interface IInputStream
public void setByteOrder(ByteOrder value)
IInputStream
setByteOrder
in interface IInputStream
public void setPosition(long value)
IInputStream
setPosition
in interface IInputStream
public void skip(long offset)
IInputStream
skip
in interface IInputStream
public byte[] toByteArray()
IDataWrapper
toByteArray
in interface IDataWrapper
public long getLength()
IStream
getLength
in interface IStream
public void close() throws IOException
close
in interface Closeable
IOException
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |