com.fasterxml.aalto.AsyncByteBufferFeeder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aalto-xml Show documentation
Show all versions of aalto-xml Show documentation
Ultra-high performance non-blocking XML processor (Stax/Stax2, SAX/SAX2)
package com.fasterxml.aalto;
import java.nio.ByteBuffer;
import javax.xml.stream.XMLStreamException;
public interface AsyncByteBufferFeeder extends AsyncInputFeeder
{
/**
* Method that can be called to feed more data, if (and only if)
* {@link AsyncInputFeeder#needMoreInput} returns true.
*
* @param buffer Buffer that contains additional input to read
*
* @throws XMLStreamException if the state is such that this method should not be called
* (has not yet consumed existing input data, or has been marked as closed)
*/
public void feedInput(ByteBuffer buffer) throws XMLStreamException;
}