Class ByteBufferXMLReader

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public abstract class ByteBufferXMLReader
    extends SyntheticXMLReader
    Wrap a readable ByteBuffer as a SyntheticXMLReader.

    An implementing class must provide a buffer() method that returns the ByteBuffer, and the method is responsible for knowing when the memory region windowed by the ByteBuffer is no longer to be accessed, and throwing an exception in that case (unless the class also overrides pin() and performs the check there instead).

    The underlying buffer's position may be used to maintain the XML reader's position.

    • Constructor Detail

      • ByteBufferXMLReader

        public ByteBufferXMLReader()