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

Class marimba.io.RAFOutputStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----marimba.io.RAFOutputStream

public class RAFOutputStream
extends OutputStream
An output stream class which interfaces to a RandomAccessFile. This is a way to open a file for appending.
Version:
1.6, 10/28/96
Author:
Jonathan Payne

Constructor Index

 o RAFOutputStream(File)
 o RAFOutputStream(RandomAccessFile)
 o RAFOutputStream(String)

Method Index

 o close()
 o flush()
 o getRAF()
 o seek(long)
 o write(byte[])
 o write(byte[], int, int)
 o write(int)

Constructors

 o RAFOutputStream
  public RAFOutputStream(String path) throws IOException
 o RAFOutputStream
  public RAFOutputStream(File file) throws IOException
 o RAFOutputStream
  public RAFOutputStream(RandomAccessFile raf)

Methods

 o write
  public void write(int b) throws IOException
Overrides:
write in class OutputStream
 o write
  public void write(byte b[]) throws IOException
Overrides:
write in class OutputStream
 o write
  public void write(byte b[],
                    int off,
                    int len) throws IOException
Overrides:
write in class OutputStream
 o flush
  public void flush() throws IOException
Overrides:
flush in class OutputStream
 o close
  public void close() throws IOException
Overrides:
close in class OutputStream
 o seek
  public void seek(long pos) throws IOException
 o getRAF
  public RandomAccessFile getRAF()

All Packages  Class Hierarchy  This Package  Previous  Next  Index