Package org.jboss.marshalling
Interface ByteOutput
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,java.io.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
public interface ByteOutput extends java.io.Closeable, java.io.FlushableAn output stream of bytes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwrite(byte[] b)Write all the bytes from the given array to the stream.voidwrite(byte[] b, int off, int len)Write some of the bytes from the given array to the stream.voidwrite(int b)Writes to the output stream the eight low-order bits of the argumentb.
-
-
-
Method Detail
-
write
void write(int b) throws java.io.IOExceptionWrites to the output stream the eight low-order bits of the argumentb. The 24 high-order bits ofbare ignored.- Parameters:
b- the byte to write- Throws:
java.io.IOException- if an error occurs
-
write
void write(byte[] b) throws java.io.IOExceptionWrite all the bytes from the given array to the stream.- Parameters:
b- the byte array- Throws:
java.io.IOException- if an error occurs
-
write
void write(byte[] b, int off, int len) throws java.io.IOExceptionWrite 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:
java.io.IOException- if an error occurs
-
-