Class marimba.io.FastInputStream
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.io.FastInputStream
java.lang.Object
|
+----java.io.InputStream
|
+----java.io.FilterInputStream
|
+----marimba.io.FastInputStream
- public class FastInputStream
- extends FilterInputStream
- implements DataInput
Fast unsynchronized buffered input stream. This stream combines a lot
of the functionality of BufferedInputStream, ByteArrayInputStream,
and DataInputStream.
- Version:
- 1.29, 01/13/97
- Author:
- Jonathan Payne, Arthur van Hoff
-
buf
-
-
count
-
-
markpos
-
-
pos
-
-
FastInputStream(byte[])
- Create a stream that reads from a buffer.
-
FastInputStream(byte[], int, int)
- Create a stream that reads from a buffer.
-
FastInputStream(File)
- Open a file.
-
FastInputStream(InputStream)
- Combine two streams.
-
FastInputStream(InputStream, int)
- Combine two streams given a buffer size.
-
FastInputStream(RandomAccessFile)
- Access a RandomAccessFile
-
FastInputStream(String)
- Open a file.
-
available()
-
-
backup(int)
- Backup by a given amount.
-
close()
-
-
getError()
- See if there has been an I/O error.
-
getFilePointer()
-
-
mark(int)
-
-
markSupported()
-
-
read()
-
-
read(byte[], int, int)
-
-
readBoolean()
-
-
readByte()
-
-
readChar()
-
-
readDouble()
-
-
readFloat()
-
-
readFully(byte[])
-
-
readFully(byte[], int, int)
-
-
readInt()
-
-
readLine()
-
-
readLong()
-
-
readObject()
-
-
readShort()
-
-
readUnsignedByte()
-
-
readUnsignedShort()
-
-
readUTF()
-
-
reset()
-
-
seek(long)
-
-
skip(long)
-
-
skipBytes(int)
-
buf
protected byte buf[]
count
protected int count
pos
protected int pos
markpos
protected int markpos
FastInputStream
public FastInputStream(String file) throws IOException
- Open a file.
FastInputStream
public FastInputStream(File file) throws IOException
- Open a file.
FastInputStream
public FastInputStream(RandomAccessFile in)
- Access a RandomAccessFile
FastInputStream
public FastInputStream(InputStream in)
- Combine two streams.
FastInputStream
public FastInputStream(InputStream in,
int size)
- Combine two streams given a buffer size.
FastInputStream
public FastInputStream(byte buf[])
- Create a stream that reads from a buffer.
FastInputStream
public FastInputStream(byte buf[],
int off,
int len)
- Create a stream that reads from a buffer.
getError
public boolean getError()
- See if there has been an I/O error. I/O errors
are not reported during reads. Instead they are
reported when the stream is closed.
backup
public boolean backup(int n)
- Backup by a given amount. This will throw an
IOexception if you can't backup enough. You can
use this only to backup 1 character, or some small
amount at the beginning of a stream.
read
public int read()
- Overrides:
- read in class FilterInputStream
read
public int read(byte b[],
int off,
int len)
- Overrides:
- read in class FilterInputStream
skip
public long skip(long n)
- Overrides:
- skip in class FilterInputStream
available
public int available() throws IOException
- Overrides:
- available in class FilterInputStream
close
public void close() throws IOException
- Overrides:
- close in class FilterInputStream
readFully
public void readFully(byte b[])
readFully
public void readFully(byte b[],
int off,
int len)
skipBytes
public int skipBytes(int n)
readBoolean
public boolean readBoolean()
readByte
public byte readByte()
readUnsignedByte
public int readUnsignedByte()
readShort
public short readShort()
readUnsignedShort
public int readUnsignedShort()
readChar
public char readChar()
readInt
public int readInt()
readLong
public long readLong()
readFloat
public float readFloat()
readDouble
public double readDouble()
readLine
public String readLine()
readUTF
public String readUTF()
readObject
public PropertyObject readObject()
markSupported
public boolean markSupported()
- Overrides:
- markSupported in class FilterInputStream
mark
public void mark(int limit)
- Overrides:
- mark in class FilterInputStream
reset
public void reset()
- Overrides:
- reset in class FilterInputStream
seek
public void seek(long p) throws IOException
getFilePointer
public long getFilePointer() throws IOException
All Packages Class Hierarchy This Package Previous Next Index