Class Stax2CharArraySource

  • All Implemented Interfaces:
    Source

    public class Stax2CharArraySource
    extends Stax2BlockSource
    Simple implementation of Stax2BlockSource that encapsulates an char array.

    Note that no copy is made of the passed-in array, and that further there are direct access methods. Thus, although callers are not to modify contents of returned array, this can not be guaranteed; and as such if this would be a problem (security problem for example), caller has to make a copy of the array and pass that copy to the constructor.

    • Constructor Detail

      • Stax2CharArraySource

        public Stax2CharArraySource​(char[] buf,
                                    int start,
                                    int len)
    • Method Detail

      • getBuffer

        public char[] getBuffer()
      • getBufferStart

        public int getBufferStart()
      • getBufferLength

        public int getBufferLength()