|
LiveGraph data visualisation and analysis framework |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.LiveGraph.dataFile.write.PipedOutputStream
public class PipedOutputStream
| Field Summary | |
|---|---|
private PipedInputStream |
sink
|
| Constructor Summary | |
|---|---|
PipedOutputStream()
Creates a piped output stream that is not yet connected to a piped input stream. |
|
PipedOutputStream(PipedInputStream snk)
Creates a piped output stream connected to the specified piped input stream. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this piped output stream and releases any system resources associated with this stream. |
void |
connect(PipedInputStream sink)
Connects this piped output stream to a receiver. |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to
this piped output stream. |
void |
write(int b)
Writes the specified byte to the piped output stream. |
| Methods inherited from class java.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private PipedInputStream sink
| Constructor Detail |
|---|
public PipedOutputStream()
public PipedOutputStream(PipedInputStream snk)
throws java.io.IOException
snk.
snk - The piped input stream to connect to.
java.io.IOException - if an I/O error occurs.| Method Detail |
|---|
public void connect(PipedInputStream sink)
throws java.io.IOException
IOException is thrown.snk is an unconnected piped input stream and src is an unconnected piped
output stream, they may be connected by either the call:src.connect(snk)
snk.connect(src)
sink - the piped input stream to connect to.
java.io.IOException - if an I/O error occurs.
public void write(int b)
throws java.io.IOException
byte to the piped output stream. write method of OutputStream.
This method blocks for a while to wait until the byte is written to
the output stream, but quits the block and throws a PipedInputStream.PipeFullException if
the data cannot be written within a certain time period.
write in class java.io.OutputStreamb - the byte to be written.
java.io.IOException - if the pipe is broken,
unconnected, closed,
or if an I/O error occurs; specifically, a {link PipeFullException, if the
receiving buffer is full and waiting times out.
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
len bytes from the specified byte array starting at offset off to
this piped output stream. This method blocks for a while to wait until all the bytes are written to
the output stream, but quits the block and throws a PipedInputStream.PipeFullException if
the data cannot be written within a certain time period.
write in class java.io.OutputStreamb - the data.off - the start offset in the data.len - the number of bytes to write.
java.io.IOException - if the pipe is broken,
unconnected, closed,
or if an I/O error occurs; specifically, a {link PipeFullException, if the
receiving buffer is full and waiting times out.
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - if an I/O error occurs.
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException - if an I/O error occurs.
|
LiveGraph data visualisation and analysis framework |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||