Class ExternalByteCodec

    • Constructor Detail

      • ExternalByteCodec

        public ExternalByteCodec​(ByteArrayInputStream inputStream,
                                 ByteArrayOutputStream outputStream)
        Construct an External Codec for Bytes
        Parameters:
        inputStream - the input bytestream to read from
        outputStream - the output bytestream to write to
    • Method Detail

      • read

        public Byte read()
        Description copied from interface: CRAMCodec
        Read a single object from the stream
        Returns:
        an object from the stream
      • write

        public void write​(Byte object)
        Description copied from interface: CRAMCodec
        Write an object to the stream
        Parameters:
        object - the object to write
      • read

        public Byte read​(int length)
        Description copied from interface: CRAMCodec
        Read a array of specified length from the stream
        Parameters:
        length - the number of elements to read
        Returns:
        an object from the stream