|
JBoss Marshalling 1.3.0.CR9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.jboss.marshalling.NioByteOutput
public class NioByteOutput

A ByteOutput implementation which writes out ByteBuffers to a consumer.
| Nested Class Summary | |
|---|---|
static interface |
NioByteOutput.BufferWriter
A buffer writer for an NioByteOutput. |
| Constructor Summary | |
|---|---|
NioByteOutput(NioByteOutput.BufferWriter bufferWriterTask)
Construct a new instance. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
write(byte[] b,
int off,
int len)
Write some of the bytes from the given array to the stream. |
void |
write(int b)
Writes to the output stream the eight low-order bits of the argument b. |
| Methods inherited from class java.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.marshalling.ByteOutput |
|---|
write |
| Constructor Detail |
|---|
public NioByteOutput(NioByteOutput.BufferWriter bufferWriterTask)
bufferSize. The
given bufferWriterTask will be called to send buffers, flush the output stream, and handle the
end-of-file condition.
bufferWriterTask - the writer task| Method Detail |
|---|
public void write(int b)
throws IOException
b. The 24 high-order bits of
b are ignored.
write in interface ByteOutputwrite in class OutputStreamb - the byte to write
IOException - if an error occurs
public void write(byte[] b,
int off,
int len)
throws IOException
write in interface ByteOutputwrite in class OutputStreamb - the byte arrayoff - the index to start writing fromlen - the number of bytes to write
IOException - if an error occurs
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOException
|
JBoss Marshalling 1.3.0.CR9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||