All Packages Class Hierarchy This Package Previous Next Index
Class spec.io.FileOutputStream
spec.io.FileOutputStream
- public class FileOutputStream
Dummy output stream that is only used as a place holder and for a little
benchmark validity checking
-
FileOutputStream(File)
-
Standard constructor
-
FileOutputStream(String)
-
Standard constructor.
-
FileOutputStream(String, boolean)
-
Standard constructor.
-
clearCount()
-
Chears the byte counter
-
printCount(boolean)
-
Prints the byte counter in validity check mode '1'
-
specialTrace(String, int)
-
-
write(byte[])
-
Write b.length bytes into output stream
-
write(byte[], int, int)
-
Writes len bytes from the specified byte array starting at offset off to this
output stream.
-
write(int)
-
Writes specified byte into output stream.
FileOutputStream
public FileOutputStream(String name) throws IOException
- Standard constructor. It creates the file if it is not existing, but it
truncates the existing data if the file already exists
FileOutputStream
public FileOutputStream(String name,
boolean append) throws IOException
- Standard constructor. It opens the existing file but doesn't truncate
existing data
- See Also:
- FileOutPutStream
FileOutputStream
public FileOutputStream(File file) throws IOException
- Standard constructor
write
public void write(int b) throws IOException
- Writes specified byte into output stream.
- Parameters:
- b - - byte to be written
write
public void write(byte b[]) throws IOException
- Write b.length bytes into output stream
- Parameters:
- b - - byte array to be written
write
public void write(byte b[],
int off,
int len) throws IOException
- Writes len bytes from the specified byte array starting at offset off to this
output stream. The write method of FilterOutputStream calls the write method
of one argument on each byte to output.
Note that this method does not call the write method of its underlying input
stream with the same arguments. Subclasses of FilterOutputStream should
provide a more efficient implementation of this method
clearCount
public static void clearCount()
- Chears the byte counter
printCount
public static void printCount(boolean check)
- Prints the byte counter in validity check mode '1'
- Parameters:
- check - - Indicates whether the validation is enabled or not
specialTrace
public static int specialTrace(String rtn,
int ch)
All Packages Class Hierarchy This Package Previous Next Index