|
RoboJDETM v2.0 | |||||||
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
Abstract base class for output streams.
Constructor Summary | |
---|---|
OutputStream()
Constructor for subclasses to call. |
Method Summary | |
---|---|
void |
close()
Close the output stream. |
void |
flush()
Flush the data to the output stream. |
void |
write(byte[] buffer)
Writes the specified bytes to the output stream. |
void |
write(byte[] buffer,
int offset,
int length)
Writes bytes from the specified byte array to the output stream. |
abstract void |
write(int value)
Writes a byte to the output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
---|
public OutputStream()
Method Detail |
---|
public void close() throws IOException
This implementation does nothing. Subclasses should override this method as necessary.
IOException
public void flush() throws IOException
This implementation does nothing. Subclasses should override this method as necessary.
IOException
public void write(byte[] buffer) throws IOException
buffer
- bytes to output
IOException
public void write(byte[] buffer, int offset, int length) throws IOException
buffer
- byte arrayoffset
- offset of the first byte to writelength
- number of bytes to write
IOException
public abstract void write(int value) throws IOException
Subclasses must implement this method.
value
- byte to write
IOException
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |