Package eu.tneitzel.rmg.io
Class RawObjectInputStream
- java.lang.Object
-
- eu.tneitzel.rmg.io.RawObjectInputStream
-
public class RawObjectInputStream extends Object
Wrapper class for an ObjectInputStream. Allows to perform raw byte operations on the underlying input stream.- Author:
- Tobias Neitzel (@qtc_de)
-
-
Constructor Summary
Constructors Constructor Description RawObjectInputStream(ObjectInputStream in)Wraps an ObjectInputStream into an RawObjectInputStream.
-
-
-
Constructor Detail
-
RawObjectInputStream
public RawObjectInputStream(ObjectInputStream in)
Wraps an ObjectInputStream into an RawObjectInputStream. The underlying InputStream object is made accessible via reflection. This underlying InputStream can then be used to perform raw byte operations.- Parameters:
in- ObjectInputStream to wrap around
-
-
Method Detail
-
skip
public void skip(int n) throws IOExceptionSkip the next n bytes of input on the stream.- Parameters:
n- amount of bytes to skip- Throws:
IOException- internal error
-
-