|
Restlet Framework 2.2.1 Java Enterprise Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.util.ReadingListener
org.restlet.util.ByteReadingListener
org.restlet.util.CharacterReadingListener
org.restlet.util.StringReadingListener
public abstract class StringReadingListener
Selection listener notifying new content as a string.
Constructor Summary | |
---|---|
StringReadingListener(Representation source)
Default constructor. |
|
StringReadingListener(Representation source,
int bufferSize)
Constructor. |
Method Summary | |
---|---|
protected void |
onContent(Reader reader)
Callback invoked when new content is available. |
protected abstract void |
onContent(String content)
Callback invoked when new content is available. |
Methods inherited from class org.restlet.util.CharacterReadingListener |
---|
onContent |
Methods inherited from class org.restlet.util.ByteReadingListener |
---|
onContent |
Methods inherited from class org.restlet.util.ReadingListener |
---|
onEnd, onError, onSelected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringReadingListener(Representation source) throws IOException
IoUtils.BUFFER_SIZE
length.
source
- The source representation.
IOException
public StringReadingListener(Representation source, int bufferSize) throws IOException
source
- The source representation.bufferSize
- The byte buffer to use.
IOException
Method Detail |
---|
protected final void onContent(Reader reader)
CharacterReadingListener
onContent
in class CharacterReadingListener
reader
- The reader allowing to retrieve the new content.protected abstract void onContent(String content)
content
- The new content.
|
Restlet Framework 2.2.1 Java Enterprise Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |