Marshalling API version 1.0.0.Beta1

org.jboss.marshalling
Interface StreamHeader


public interface StreamHeader

A producer of stream headers.


Method Summary
 void readHeader(Unmarshaller input)
          Read the stream header from the stream.
 void writeHeader(Marshaller output)
          Write the stream header to the stream.
 

Method Detail

readHeader

void readHeader(Unmarshaller input)
                throws IOException
Read the stream header from the stream.

Parameters:
input - the stream header
Throws:
IOException - if the header is invalid or an error occurs

writeHeader

void writeHeader(Marshaller output)
                 throws IOException
Write the stream header to the stream.

Parameters:
output - the stream header
Throws:
IOException - if an error occurs

Marshalling API version 1.0.0.Beta1

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