Class RawCharSequence

  • All Implemented Interfaces:

    public final class RawCharSequence
    extends Object
    implements CharSequence
    A rough character sequence around a raw byte buffer.

    Characters are assumed to be 8-bit US-ASCII.

    • Field Detail

      • EMPTY

        public static final RawCharSequence EMPTY
        A zero-length character sequence.
    • Constructor Detail

      • RawCharSequence

        public RawCharSequence​(byte[] buf,
                               int start,
                               int end)
        Create a rough character sequence around the raw byte buffer.
        buf - buffer to scan.
        start - starting position for the sequence.
        end - ending position for the sequence.