All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class avd.io.RFileOutputStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----avd.io.RFileOutputStream

public class RFileOutputStream
extends OutputStream
A class for writing to a file under the directories mounted through a RFSClient. The public methods of this class behave exactly as java.io.OutputStream.


Constructor Index

 o RFileOutputStream(String, boolean)
Opens or creates a file under the directories mounted through a RFS client.

Method Index

 o close()
 o finalize()
 o write(byte[])
 o write(byte[], int, int)
 o write(int)

Constructors

 o RFileOutputStream
 public RFileOutputStream(String filename,
                          boolean append) throws IOException
Opens or creates a file under the directories mounted through a RFS client. If the second parameter is true data is appended to the file, else data is written from the start.

Parameters:
filename - filepath of the filename to be opened or created. The first filename component of filename should be one of the registered local mountpoints(lmp)
append - If true data is appended else writing starts at file offset 0
See Also:
mount, RFSClientFactory

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 close
 public void close() throws IOException
Overrides:
close in class OutputStream
 o finalize
 protected void finalize()
Overrides:
finalize in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index