|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream
Abstract class representing an output stream of bytes. All OutputStreams are based on this class.
InputStream
,
FilterOutputStream
,
BufferedOutputStream
,
DataOutputStream
,
ByteArrayOutputStream
Constructor Summary | |
OutputStream()
|
Method Summary | |
void |
close()
Closes the stream. |
void |
flush()
Flushes the stream. |
void |
write(byte[] b)
Writes an array of bytes. |
void |
write(byte[] b,
int off,
int len)
Writes a sub array of bytes. |
abstract void |
write(int b)
Writes a byte. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OutputStream()
Method Detail |
public abstract void write(int b) throws IOException
b
- the byte
IOException
- If an I/O error has occurred.public void write(byte[] b) throws IOException
b
- the data to be written
IOException
- If an I/O error has occurred.public void write(byte[] b, int off, int len) throws IOException
b
- the data to be writtenoff
- the start offset in the datalen
- the number of bytes that are written
IOException
- If an I/O error has occurred.public void flush() throws IOException
IOException
- If an I/O error has occurred.public void close() throws IOException
IOException
- If an I/O error has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |