Top Description Methods
org.jboss.marshalling

public Interface ByteOutput

extends Closeable, Flushable
Known Direct Subinterfaces
org.jboss.marshalling.Marshaller
Known Direct Implementers
org.jboss.marshalling.MarshallerObjectOutputStream, org.jboss.marshalling.SimpleByteOutput, org.jboss.marshalling.OutputStreamByteOutput, org.jboss.marshalling.ByteBufferOutput
Imports
java.io.Closeable, .Flushable, .IOException

An output stream of bytes.

Method Summary

Modifier and TypeMethod and Description
public void
write(int
the byte to write
b
)

Writes to the output stream the eight low-order bits of the argument b.

public void
write(byte[]
the byte array
b
)

Write all the bytes from the given array to the stream.

public void
write(byte[]
the byte array
b
,
int
the index to start writing from
off
,
int
the number of bytes to write
len
)

Write some of the bytes from the given array to the stream.

Inherited from java.io.Closeable:
close
Inherited from java.io.Flushable:
flush

Method Detail

writeback to summary
public void write(int b) throws IOException

Writes to the output stream the eight low-order bits of the argument b. The 24 high-order bits of b are ignored.

Parameters
b:int

the byte to write

Exceptions
IOException:
if an error occurs
writeback to summary
public void write(byte[] b) throws IOException

Write all the bytes from the given array to the stream.

Parameters
b:byte[]

the byte array

Exceptions
IOException:
if an error occurs
writeback to summary
public void write(byte[] b, int off, int len) throws IOException

Write some of the bytes from the given array to the stream.

Parameters
b:byte[]

the byte array

off:int

the index to start writing from

len:int

the number of bytes to write

Exceptions
IOException:
if an error occurs