|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcontrol.io.OutputStream
public abstract class OutputStream
OutputStreams can be used to send single bytes and arrays of bytes over a stream connection.
| Constructor Summary | |
|---|---|
OutputStream()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
Closes the stream. |
abstract void |
flush()
Flushes the stream by forcing the output of internally buffered data. |
void |
write(byte[] b)
Writes an array of bytes to the OutputStream. |
abstract void |
write(byte[] b,
int start,
int length)
Writes a part of an array to the OutputStream. |
abstract void |
write(int b)
Writes a single byte to the OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, notifyAll, toString, wait |
| Constructor Detail |
|---|
public OutputStream()
| Method Detail |
|---|
public abstract void write(int b)
throws IOException
b - byte to write
IOException - occurs on I/O errors or when the stream is closed
public void write(byte[] b)
throws IOException
b - array containing the data to send
IOException - occurs on I/O errors or when the stream is closed
public abstract void write(byte[] b,
int start,
int length)
throws IOException
b - array containing the data to sendstart - index of the first byte to send in the arraylength - number of bytes to send
IOException - occurs on I/O errors or when the stream is closed
public abstract void flush()
throws IOException
IOException - occurs on I/O errors or when the stream is closed
public abstract void close()
throws IOException
IOException - if stream is already closed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||