Class NotImplementedCodec<V>

java.lang.Object
io.bytestreams.codec.core.NotImplementedCodec<V>
Type Parameters:
V - the value type
All Implemented Interfaces:
Codec<V>

public class NotImplementedCodec<V> extends Object implements Codec<V>
A codec that always throws, indicating no implementation has been provided.
  • Constructor Details

    • NotImplementedCodec

      public NotImplementedCodec()
  • Method Details

    • encode

      public EncodeResult encode(V value, OutputStream output)
      Description copied from interface: Codec
      Encodes the given value and writes it to the output stream.
      Specified by:
      encode in interface Codec<V>
      Parameters:
      value - the value to encode
      output - the output stream to write the encoded bytes to
      Returns:
      the encode result containing logical count and bytes written
    • decode

      public V decode(InputStream input)
      Description copied from interface: Codec
      Decodes a value from the input stream.
      Specified by:
      decode in interface Codec<V>
      Parameters:
      input - the input stream to read the encoded bytes from
      Returns:
      the decoded value