|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
public abstract class OutputStream
OutputStream is an abstract class for all byte output streams. It provides basic method implementations for writing bytes to a stream.
InputStream| Constructor Summary | |
|---|---|
OutputStream()
This constructor does nothing interesting. |
|
| Method Summary | |
|---|---|
void |
close()
Close this OutputStream. |
void |
flush()
Flush this OutputStream. |
void |
write(byte[] buffer)
Writes the entire contents of the byte array buffer to
this OutputStream. |
void |
write(byte[] buffer,
int offset,
int count)
Writes count bytes from the byte array
buffer starting at offset to this
OutputStream. |
abstract void |
write(int oneByte)
Writes the specified byte oneByte to this OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, println, toString |
| Constructor Detail |
|---|
public OutputStream()
| Method Detail |
|---|
public void close()
throws IOException
IOException - If an error occurs attempting to close this OutputStream.
public void flush()
throws IOException
IOException - If an error occurs attempting to flush this OutputStream.
public void write(byte[] buffer)
throws IOException
buffer to
this OutputStream.
buffer - the buffer to be written
IOException - If an error occurs attempting to write to this OutputStream.
public void write(byte[] buffer,
int offset,
int count)
throws IOException
count bytes from the byte array
buffer starting at offset to this
OutputStream.
buffer - the buffer to be writtenoffset - offset in buffer to get bytescount - number of bytes in buffer to write
IOException - If an error occurs attempting to write to this OutputStream.
IndexOutOfBoundsException - If offset or count are outside of bounds.
public abstract void write(int oneByte)
throws IOException
oneByte to this OutputStream.
Only the low order byte of oneByte is written.
oneByte - the byte to be written
IOException - If an error occurs attempting to write to this OutputStream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||