Class marimba.io.FastOutputStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.io.FastOutputStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----java.io.FilterOutputStream
                   |
                   +----marimba.io.FastOutputStream

public class FastOutputStream
extends FilterOutputStream
implements DataOutput
Fast unsynchronized buffered output stream. This stream combines the functionality of DataOutputStream, PrintStream, and BufferedOutputStream.
Version:
1.22, 01/02/97
Author:
Jonathan Payne, Arthur van Hoff

Variable Index

 o buf
 o count
 o out

Constructor Index

 o FastOutputStream()
Create a memory output stream with a given size.
 o FastOutputStream(byte[])
Create a memory output stream with a given size.
 o FastOutputStream(File)
Open a file for writing.
 o FastOutputStream(int)
Create a memory output stream with a given size.
 o FastOutputStream(OutputStream)
Combine two streams.
 o FastOutputStream(OutputStream, int)
Combine two streams given a buffer size.
 o FastOutputStream(RandomAccessFile)
Open using a random access file.
 o FastOutputStream(String)
Open a file for writing.

Method Index

 o close()
 o flush()
 o getByteArray()
 o getError()
Return true if there has been a write error.
 o getFilePointer()
 o justClose()
Version of close which doesn't throw an exception.
 o print(char)
 o print(long)
 o print(Object)
 o print(String)
 o println()
 o println(char)
 o println(long)
 o println(Object)
 o println(String)
 o seek(long)
 o size()
 o toByteArray()
 o toString()
 o write(byte[], int, int)
 o write(int)
 o writeBoolean(boolean)
 o writeByte(int)
 o writeBytes(String)
 o writeChar(int)
 o writeChars(String)
 o writeDouble(double)
 o writeFloat(float)
 o writeInt(int)
 o writeLong(long)
 o writeObject(PropertyObject)
 o writeShort(int)
 o writeUTF(String)

Variables

 o buf
  protected byte buf[]
 o count
  protected int count
 o out
  public OutputStream out

Constructors

 o FastOutputStream
  public FastOutputStream(String file) throws IOException
Open a file for writing.
 o FastOutputStream
  public FastOutputStream(File file) throws IOException
Open a file for writing.
 o FastOutputStream
  public FastOutputStream(RandomAccessFile file) throws IOException
Open using a random access file.
 o FastOutputStream
  public FastOutputStream(OutputStream out)
Combine two streams.
 o FastOutputStream
  public FastOutputStream(OutputStream out,
                          int size)
Combine two streams given a buffer size.
 o FastOutputStream
  public FastOutputStream()
Create a memory output stream with a given size.
 o FastOutputStream
  public FastOutputStream(int siz)
Create a memory output stream with a given size.
 o FastOutputStream
  public FastOutputStream(byte buf[])
Create a memory output stream with a given size.

Methods

 o getError
  public boolean getError()
Return true if there has been a write error. I/O erros are not reported during writes. Instead the are reported when you flush or close the stream.
 o write
  public final void write(int b)
Overrides:
write in class FilterOutputStream
 o write
  public final void write(byte b[],
                          int off,
                          int len)
Overrides:
write in class FilterOutputStream
 o flush
  public final void flush() throws IOException
Overrides:
flush in class FilterOutputStream
 o close
  public void close() throws IOException
Overrides:
close in class FilterOutputStream
 o justClose
  public void justClose()
Version of close which doesn't throw an exception.
 o size
  public int size()
 o getByteArray
  public byte[] getByteArray()
 o toByteArray
  public byte[] toByteArray()
 o toString
  public String toString()
Overrides:
toString in class Object
 o writeBoolean
  public final void writeBoolean(boolean v)
 o writeByte
  public final void writeByte(int v)
 o writeShort
  public final void writeShort(int v)
 o writeChar
  public final void writeChar(int v)
 o writeInt
  public final void writeInt(int v)
 o writeLong
  public final void writeLong(long v)
 o writeFloat
  public final void writeFloat(float v)
 o writeDouble
  public final void writeDouble(double v)
 o writeBytes
  public final void writeBytes(String s) throws IOException
 o writeChars
  public final void writeChars(String s) throws IOException
 o writeUTF
  public final void writeUTF(String str)
 o writeObject
  public final void writeObject(PropertyObject obj)
 o print
  public final void print(char ch)
 o println
  public final void println(char ch)
 o print
  public final void print(String str)
 o println
  public final void println(String str)
 o print
  public final void print(Object obj)
 o println
  public final void println(Object obj)
 o print
  public final void print(long n)
 o println
  public final void println(long n)
 o println
  public final void println()
 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