Package org.jboss.marshalling
Interface ByteOutput
- All Superinterfaces:
AutoCloseable
,Closeable
,Flushable
- All Known Subinterfaces:
Marshaller
- All Known Implementing Classes:
AbstractMarshaller
,AbstractObjectOutput
,BlockMarshaller
,BlockMarshaller
,ByteBufferOutput
,ByteOutputStream
,LimitedByteOutput
,MarshallerObjectOutputStream
,ObjectOutputStreamMarshaller
,OutputStreamByteOutput
,RiverMarshaller
,RiverObjectOutputStream
,SerializingCloner.StepObjectOutput
,SerializingCloner.StepObjectOutputStream
,SerialMarshaller
,SerialObjectOutputStream
,SimpleByteOutput
,SimpleDataOutput
An output stream of bytes.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 argumentb
.
-
Method Details
-
write
Writes to the output stream the eight low-order bits of the argumentb
. The 24 high-order bits ofb
are ignored.- Parameters:
b
- the byte to write- Throws:
IOException
- if an error occurs
-
write
Write all the bytes from the given array to the stream.- Parameters:
b
- the byte array- Throws:
IOException
- if an error occurs
-
write
Write some of the bytes from the given array to the stream.- Parameters:
b
- the byte arrayoff
- the index to start writing fromlen
- the number of bytes to write- Throws:
IOException
- if an error occurs
-