Package org.jboss.marshalling
Class Marshalling.StaticStreamHeader
java.lang.Object
org.jboss.marshalling.Marshalling.StaticStreamHeader
- All Implemented Interfaces:
Serializable
,StreamHeader
- Enclosing class:
Marshalling
private static final class Marshalling.StaticStreamHeader
extends Object
implements StreamHeader, Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
readHeader
(ByteInput input) Read the stream header from the stream.toString()
void
writeHeader
(ByteOutput output) Write the stream header to the stream.
-
Field Details
-
headerBytes
private final byte[] headerBytes -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
StaticStreamHeader
public StaticStreamHeader(byte[] bytes)
-
-
Method Details
-
readHeader
Description copied from interface:StreamHeader
Read the stream header from the stream.- Specified by:
readHeader
in interfaceStreamHeader
- Parameters:
input
- the stream header- Throws:
IOException
- if the header is invalid or an error occurs
-
writeHeader
Description copied from interface:StreamHeader
Write the stream header to the stream.- Specified by:
writeHeader
in interfaceStreamHeader
- Parameters:
output
- the stream header- Throws:
IOException
- if an error occurs
-
toString
-