Package eu.tneitzel.rmg.io
Class RawObjectOutputStream
- java.lang.Object
-
- eu.tneitzel.rmg.io.RawObjectOutputStream
-
public class RawObjectOutputStream extends Object
Wrapper class for an ObjectOutputStream. Allows to perform raw byte operations on the underlying output stream.- Author:
- Tobias Neitzel (@qtc_de)
-
-
Constructor Summary
Constructors Constructor Description RawObjectOutputStream(ObjectOutputStream out)Wraps an ObjectOutputStream into an RawObjectOutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteRaw(byte content)Write raw byte to the underlying output stream.
-
-
-
Constructor Detail
-
RawObjectOutputStream
public RawObjectOutputStream(ObjectOutputStream out)
Wraps an ObjectOutputStream into an RawObjectOutputStream. The underlying OutputStream object is made accessible via reflection. This underlying OutputStream can then be used to perform raw byte operations.- Parameters:
out- OutputStream to wrap around
-
-
Method Detail
-
writeRaw
public void writeRaw(byte content) throws IOExceptionWrite raw byte to the underlying output stream.- Parameters:
content- byte to write- Throws:
IOException- internal error
-
-