OutputStream which implements ByteOutput and writes bytes to another ByteOutput.
Usually the Marshalling#createByteOutput(OutputStream) method should be used to create instances because
it can detect when the target already implements ByteOutput.
| Modifier and Type | Field and Description |
|---|---|
| protected volatile ByteOutput |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | flush()
Overrides java. Implements java. |
| public void | write(final int
the byte to write b)Implements abstract java. Implements org. b.
|
| public void | write(final byte[]
the byte array b)Overrides java. Implements org. |
| public void | write(final byte[]
the byte array b, final int the index to start writing from off, final int the number of bytes to write len)Overrides java. Implements org. |
| byteOutput | back to summary |
|---|---|
| protected volatile ByteOutput byteOutput | |
| ByteOutputStream | back to summary |
|---|---|
| public ByteOutputStream(final ByteOutput byteOutput) Construct a new instance.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this stream by writing any buffered output to the underlying stream.
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Implements abstract java. Implements org. Doc from org. Writes to the output stream the eight low-order bits of the argument
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b) throws IOException Overrides java. Implements org. Doc from org. Write all the bytes from the given array to the stream.
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b, final int off, final int len) throws IOException Overrides java. Implements org. Doc from org. Write some of the bytes from the given array to the stream.
| |