|
Build 1.0_r1(from source) | |||||||||
| 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()
Default constructor. |
|
| 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputStream()
| Method Detail |
|---|
public void close()
throws IOException
close in interface CloseableIOException - If an error occurs attempting to close this OutputStream.
public void flush()
throws IOException
flush in interface FlushableIOException - 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.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||