Class XmlEventDecoder

    • Method Detail

      • setMaxInMemorySize

        public void setMaxInMemorySize​(int byteCount)
        Set the max number of bytes that can be buffered by this decoder. This is either the size the entire input when decoding as a whole, or when using async parsing via Aalto XML, it is size one top-level XML tree. When the limit is exceeded, DataBufferLimitException is raised.

        By default this is set to 256K.

        Parameters:
        byteCount - the max number of bytes to buffer, or -1 for unlimited
        Since:
        5.1.11