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 TypeMethodDescriptionvoidreadHeader(ByteInput input) Read the stream header from the stream.toString()voidwriteHeader(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:StreamHeaderRead the stream header from the stream.- Specified by:
readHeaderin interfaceStreamHeader- Parameters:
input- the stream header- Throws:
IOException- if the header is invalid or an error occurs
-
writeHeader
Description copied from interface:StreamHeaderWrite the stream header to the stream.- Specified by:
writeHeaderin interfaceStreamHeader- Parameters:
output- the stream header- Throws:
IOException- if an error occurs
-
toString
-