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

An 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.
| Field Summary | |
|---|---|
protected ByteOutput |
byteOutput
|
| Constructor Summary | |
|---|---|
ByteOutputStream(ByteOutput byteOutput)
Construct a new instance. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
write(byte[] b)
Write all the bytes from the given array to the stream. |
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.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected volatile ByteOutput byteOutput
| Constructor Detail |
|---|
public ByteOutputStream(ByteOutput byteOutput)
byteOutput - the byte output to write to| Method Detail |
|---|
public void write(int b)
throws java.io.IOException
b. The 24 high-order bits of
b are ignored.
write in interface ByteOutputwrite in class java.io.OutputStreamb - the byte to write
java.io.IOException - if an error occurs
public void write(byte[] b)
throws java.io.IOException
write in interface ByteOutputwrite in class java.io.OutputStreamb - the byte array
java.io.IOException - if an error occurs
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in interface ByteOutputwrite in class java.io.OutputStreamb - the byte arrayoff - the index to start writing fromlen - the number of bytes to write
java.io.IOException - if an error occurs
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
|
JBoss Marshalling 1.3.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||