public abstract class StringReadingListener extends CharacterReadingListener
Constructor and Description |
---|
StringReadingListener(Representation source)
Default constructor.
|
StringReadingListener(Representation source,
int bufferSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onContent(java.io.Reader reader)
Callback invoked when new content is available.
|
protected abstract void |
onContent(java.lang.String content)
Callback invoked when new content is available.
|
onContent
onContent
onEnd, onError, onSelected
public StringReadingListener(Representation source) throws java.io.IOException
IoUtils.BUFFER_SIZE
length.source
- The source representation.java.io.IOException
public StringReadingListener(Representation source, int bufferSize) throws java.io.IOException
source
- The source representation.bufferSize
- The byte buffer to use.java.io.IOException
protected final void onContent(java.io.Reader reader)
CharacterReadingListener
onContent
in class CharacterReadingListener
reader
- The reader allowing to retrieve the new content.protected abstract void onContent(java.lang.String content)
content
- The new content.Copyright © 2005-2024 Restlet.