Package org.jboss.marshalling
Class Marshalling.StaticStreamHeader
- java.lang.Object
-
- org.jboss.marshalling.Marshalling.StaticStreamHeader
-
- All Implemented Interfaces:
java.io.Serializable,StreamHeader
- Enclosing class:
- Marshalling
private static final class Marshalling.StaticStreamHeader extends java.lang.Object implements StreamHeader, java.io.Serializable
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]headerBytesprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description StaticStreamHeader(byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadHeader(ByteInput input)Read the stream header from the stream.java.lang.StringtoString()voidwriteHeader(ByteOutput output)Write the stream header to the stream.
-
-
-
Field Detail
-
headerBytes
private final byte[] headerBytes
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
readHeader
public void readHeader(ByteInput input) throws java.io.IOException
Description copied from interface:StreamHeaderRead the stream header from the stream.- Specified by:
readHeaderin interfaceStreamHeader- Parameters:
input- the stream header- Throws:
java.io.IOException- if the header is invalid or an error occurs
-
writeHeader
public void writeHeader(ByteOutput output) throws java.io.IOException
Description copied from interface:StreamHeaderWrite the stream header to the stream.- Specified by:
writeHeaderin interfaceStreamHeader- Parameters:
output- the stream header- Throws:
java.io.IOException- if an error occurs
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-