Package org.jboss.marshalling
Class MarshallerObjectInput
java.lang.Object
org.jboss.marshalling.MarshallerObjectInput
- All Implemented Interfaces:
DataInput
,ObjectInput
,AutoCloseable
A marshaller's object input. This implementation delegates to an
Unmarshaller
implementation while throwing
an exception if close()
is called.
This class is not part of the marshalling API; rather it is intended for marshaller implementors to make it easier to develop Java serialization-compatible marshallers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
This implementation always throws anIllegalStateException
.int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) boolean
byte
readByte()
char
readChar()
double
float
void
readFully
(byte[] b) void
readFully
(byte[] b, int off, int len) int
readInt()
readLine()
long
readLong()
short
int
int
readUTF()
long
skip
(long n) int
skipBytes
(int n)
-
Field Details
-
unmarshaller
-
-
Constructor Details
-
MarshallerObjectInput
Construct a new instance.- Parameters:
unmarshaller
- the unmarshaller to delegate to
-
-
Method Details
-
readObject
- Specified by:
readObject
in interfaceObjectInput
- Throws:
ClassNotFoundException
IOException
-
read
- Specified by:
read
in interfaceObjectInput
- Throws:
IOException
-
read
- Specified by:
read
in interfaceObjectInput
- Throws:
IOException
-
read
- Specified by:
read
in interfaceObjectInput
- Throws:
IOException
-
skip
- Specified by:
skip
in interfaceObjectInput
- Throws:
IOException
-
available
- Specified by:
available
in interfaceObjectInput
- Throws:
IOException
-
close
This implementation always throws anIllegalStateException
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceObjectInput
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
skipBytes
- Specified by:
skipBytes
in interfaceDataInput
- Throws:
IOException
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Throws:
IOException
-
readShort
- Specified by:
readShort
in interfaceDataInput
- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Throws:
IOException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Throws:
IOException
-
readLine
- Specified by:
readLine
in interfaceDataInput
- Throws:
IOException
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-