|
||||||||||
| 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
public abstract class CharacterReadingListener
Selection listener notifying new content as a Reader. It relies on
the representation's character set for proper character decoding.
| Constructor Summary | |
|---|---|
CharacterReadingListener(Representation source)
Default constructor. |
|
CharacterReadingListener(Representation source,
int bufferSize)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
onContent(InputStream inputStream)
Callback invoked when new content is available. |
protected abstract void |
onContent(Reader reader)
Callback invoked when new content is available. |
| 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 CharacterReadingListener(Representation source)
throws IOException
IoUtils.BUFFER_SIZE
length.
source - The source representation.
IOException
public CharacterReadingListener(Representation source,
int bufferSize)
throws IOException
source - The source representation.bufferSize - The byte buffer to use.
IOException| Method Detail |
|---|
protected final void onContent(InputStream inputStream)
ByteReadingListener
onContent in class ByteReadingListenerinputStream - The input stream allowing to retrieve the new content.protected abstract void onContent(Reader reader)
reader - The reader allowing to retrieve the new content.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||