Class Stax2ByteArraySource

  • All Implemented Interfaces:
    Source

    public class Stax2ByteArraySource
    extends Stax2BlockSource
    Simple implementation of Stax2BlockSource that encapsulates a byte 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

      • Stax2ByteArraySource

        public Stax2ByteArraySource​(byte[] buf,
                                    int start,
                                    int len)