Package org.jboss.marshalling
Interface StreamHeader
- All Known Implementing Classes:
Marshalling.StaticStreamHeader
public interface StreamHeader
A producer of stream headers.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
readHeader
(ByteInput input) Read the stream header from the stream.void
writeHeader
(ByteOutput output) Write the stream header to the stream.
-
Method Details
-
readHeader
Read the stream header from the stream.- Parameters:
input
- the stream header- Throws:
IOException
- if the header is invalid or an error occurs
-
writeHeader
Write the stream header to the stream.- Parameters:
output
- the stream header- Throws:
IOException
- if an error occurs
-