Class 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 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 IOException
        Write raw byte to the underlying output stream.
        Parameters:
        content - byte to write
        Throws:
        IOException - internal error