Class DataOutputViewStreamWrapper

    • Constructor Detail

      • DataOutputViewStreamWrapper

        public DataOutputViewStreamWrapper​(OutputStream out)
    • Method Detail

      • skipBytesToWrite

        public void skipBytesToWrite​(int numBytes)
                              throws IOException
        Description copied from interface: DataOutputView
        Skips numBytes bytes memory. If some program reads the memory that was skipped over, the results are undefined.
        Specified by:
        skipBytesToWrite in interface DataOutputView
        Parameters:
        numBytes - The number of bytes to skip.
        Throws:
        IOException - Thrown, if any I/O related problem occurred such that the view could not be advanced to the desired position.
      • write

        public void write​(DataInputView source,
                          int numBytes)
                   throws IOException
        Description copied from interface: DataOutputView
        Copies numBytes bytes from the source to this view.
        Specified by:
        write in interface DataOutputView
        Parameters:
        source - The source to copy the bytes from.
        numBytes - The number of bytes to copy.
        Throws:
        IOException - Thrown, if any I/O related problem occurred, such that either the input view could not be read, or the output could not be written.