|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
uk.ac.rdg.resc.jstyx.client.CStyxFileOutputStream
public class CStyxFileOutputStream
Output stream for writing data to a Styx File. The file will be truncated at the end of the data that are written through this class.
| Constructor Summary | |
|---|---|
CStyxFileOutputStream(CStyxFile file)
Creates a new CStyxFileOutputStream to write data to the given CStyxFile. |
|
CStyxFileOutputStream(CStyxFile file,
boolean closeConnectionWhenCloseStream)
Creates a new CStyxFileOutputStream to write data to the given CStyxFile. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the file stream (i.e. |
void |
flush()
Flushes the internal buffer and forces any buffered output bytes to be written |
void |
write(int b)
Writes the specified byte to the Styx file. |
| Methods inherited from class java.io.OutputStream |
|---|
write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CStyxFileOutputStream(CStyxFile file,
boolean closeConnectionWhenCloseStream)
throws StyxException
file - the file to write tocloseConnectionWhenCloseStream - If this is true, we shall close the underlying
StyxConnection when this stream is closed (this is normally set when
getting an output stream through the StyxURLConnection class)
StyxException
public CStyxFileOutputStream(CStyxFile file)
throws StyxException
StyxException| Method Detail |
|---|
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||