Class DefaultBitInput

  • All Implemented Interfaces:
    BitInput

    public class DefaultBitInput
    extends AbstractBitInput
    A default implementation of ByteInput which reads bytes from an instance of ByteInput.
    Author:
    Jin Kwon <jinahya_at_gmail.com>
    • Constructor Detail

      • DefaultBitInput

        public DefaultBitInput​(ByteInput delegate)
        Create a new instance with specified delegate.
        Parameters:
        delegate - the delegate on which read() is invoked; may be null if it is intended to be lazily initialized and set.
    • Method Detail

      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class AbstractBitInput
        Returns:
        a string representation of the object.
      • setDelegate

        public void setDelegate​(ByteInput delegate)
        Replaces the value of delegate with given.
        Parameters:
        delegate - new value of delegate.