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.
|
onContentonContentonEnd, onError, onSelectedpublic StringReadingListener(Representation source) throws java.io.IOException
IoUtils.BUFFER_SIZE
length.source - The source representation.java.io.IOExceptionpublic StringReadingListener(Representation source, int bufferSize) throws java.io.IOException
source - The source representation.bufferSize - The byte buffer to use.java.io.IOExceptionprotected final void onContent(java.io.Reader reader)
CharacterReadingListeneronContent in class CharacterReadingListenerreader - The reader allowing to retrieve the new content.protected abstract void onContent(java.lang.String content)
content - The new content.Copyright © 2005-2024 Restlet.