|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.acm.seguin.io.InplaceOutputStream
public class InplaceOutputStream
To the user of this object, it appears that the file is written in place.
| Constructor Summary | |
|---|---|
InplaceOutputStream(java.io.File dest)
Creates an InplaceOutputStream |
|
| Method Summary | |
|---|---|
void |
close()
Closes the file |
protected void |
finalize()
Make sure to clean up after itself |
void |
flush()
Flush the file |
void |
write(byte[] b)
Write a byte array to the file |
void |
write(byte[] b,
int off,
int len)
Write a byte array to the file |
void |
write(int b)
Write a byte to the file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InplaceOutputStream(java.io.File dest)
throws java.io.IOException
dest - the output file location
java.io.IOException - throws an IOException| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException - throws an IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - throws an IOException
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - the byte to be written
java.io.IOException - throws an IOException
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamb - the byte array to be written
java.io.IOException - throws an IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamb - the byte array to be writtenoff - the offset into the arraylen - the number of bytes to write
java.io.IOException - throws an IOExceptionprotected void finalize()
finalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||