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

Variable Index

 o buf
 o count
 o markpos
 o pos

Constructor Index

 o FastInputStream(byte[])
Create a stream that reads from a buffer.
 o FastInputStream(byte[], int, int)
Create a stream that reads from a buffer.
 o FastInputStream(File)
Open a file.
 o FastInputStream(InputStream)
Combine two streams.
 o FastInputStream(InputStream, int)
Combine two streams given a buffer size.
 o FastInputStream(RandomAccessFile)
Access a RandomAccessFile
 o FastInputStream(String)
Open a file.

Method Index

 o available()
 o backup(int)
Backup by a given amount.
 o close()
 o getError()
See if there has been an I/O error.
 o getFilePointer()
 o mark(int)
 o markSupported()
 o read()
 o read(byte[], int, int)
 o readBoolean()
 o readByte()
 o readChar()
 o readDouble()
 o readFloat()
 o readFully(byte[])
 o readFully(byte[], int, int)
 o readInt()
 o readLine()
 o readLong()
 o readObject()
 o readShort()
 o readUnsignedByte()
 o readUnsignedShort()
 o readUTF()
 o reset()
 o seek(long)
 o skip(long)
 o skipBytes(int)

Variables

 o buf
  protected byte buf[]
 o count
  protected int count
 o pos
  protected int pos
 o markpos
  protected int markpos

Constructors

 o FastInputStream
  public FastInputStream(String file) throws IOException
Open a file.
 o FastInputStream
  public FastInputStream(File file) throws IOException
Open a file.
 o FastInputStream
  public FastInputStream(RandomAccessFile in)
Access a RandomAccessFile
 o FastInputStream
  public FastInputStream(InputStream in)
Combine two streams.
 o FastInputStream
  public FastInputStream(InputStream in,
                         int size)
Combine two streams given a buffer size.
 o FastInputStream
  public FastInputStream(byte buf[])
Create a stream that reads from a buffer.
 o FastInputStream
  public FastInputStream(byte buf[],
                         int off,
                         int len)
Create a stream that reads from a buffer.

Methods

 o 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.
 o 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.
 o read
  public int read()
Overrides:
read in class FilterInputStream
 o read
  public int read(byte b[],
                  int off,
                  int len)
Overrides:
read in class FilterInputStream
 o skip
  public long skip(long n)
Overrides:
skip in class FilterInputStream
 o available
  public int available() throws IOException
Overrides:
available in class FilterInputStream
 o close
  public void close() throws IOException
Overrides:
close in class FilterInputStream
 o readFully
  public void readFully(byte b[])
 o readFully
  public void readFully(byte b[],
                        int off,
                        int len)
 o skipBytes
  public int skipBytes(int n)
 o readBoolean
  public boolean readBoolean()
 o readByte
  public byte readByte()
 o readUnsignedByte
  public int readUnsignedByte()
 o readShort
  public short readShort()
 o readUnsignedShort
  public int readUnsignedShort()
 o readChar
  public char readChar()
 o readInt
  public int readInt()
 o readLong
  public long readLong()
 o readFloat
  public float readFloat()
 o readDouble
  public double readDouble()
 o readLine
  public String readLine()
 o readUTF
  public String readUTF()
 o readObject
  public PropertyObject readObject()
 o markSupported
  public boolean markSupported()
Overrides:
markSupported in class FilterInputStream
 o mark
  public void mark(int limit)
Overrides:
mark in class FilterInputStream
 o reset
  public void reset()
Overrides:
reset in class FilterInputStream
 o seek
  public void seek(long p) throws IOException
 o getFilePointer
  public long getFilePointer() throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index