Marshalling API version 1.0.0.GA

org.jboss.marshalling
Interface ByteOutput

All Superinterfaces:
Closeable, Flushable
All Known Subinterfaces:
Marshaller
All Known Implementing Classes:
AbstractMarshaller

public interface ByteOutput
extends Closeable, Flushable

An output stream of bytes.


Method Summary
 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 interface java.io.Closeable
close
 
Methods inherited from interface java.io.Flushable
flush
 

Method Detail

write

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 - the byte to write
Throws:
IOException - if an error occurs

write

void write(byte[] b)
           throws IOException
Write all the bytes from the given array to the stream.

Parameters:
b - the byte array
Throws:
IOException - if an error occurs

write

void write(byte[] b,
           int off,
           int len)
           throws IOException
Write some of the bytes from the given array to the stream.

Parameters:
b - the byte array
off - the index to start writing from
len - the number of bytes to write
Throws:
IOException - if an error occurs

Marshalling API version 1.0.0.GA

Copyright © 2008 JBoss, a division of Red Hat, Inc.