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[]
headerBytes
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description StaticStreamHeader(byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readHeader(ByteInput input)
Read the stream header from the stream.java.lang.String
toString()
void
writeHeader(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:StreamHeader
Read the stream header from the stream.- Specified by:
readHeader
in 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:StreamHeader
Write the stream header to the stream.- Specified by:
writeHeader
in interfaceStreamHeader
- Parameters:
output
- the stream header- Throws:
java.io.IOException
- if an error occurs
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-