|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectthings.thinger.io.StreamSourceFromStream
public class StreamSourceFromStream
A character stream source. It will tee a single character, so be sure the underlying stream will starve it (pass EOF) if it should cross a barrier and read something it isn't allowed to have. See the HeaderProcessor for an example of how to do this.
Version History
EPG - Initial (toolkit) - 7 SEP 03
| Constructor Summary | |
|---|---|
StreamSourceFromStream()
A null constructor. |
|
StreamSourceFromStream(java.io.InputStream source)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
hasMore()
Does the source have more to get? |
int |
next()
Get the next character. |
void |
reuse(java.io.InputStream source)
Reuse this object but with another stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamSourceFromStream()
public StreamSourceFromStream(java.io.InputStream source)
throws java.lang.Exception
source - the input stream source.
java.lang.Exception| Method Detail |
|---|
public void reuse(java.io.InputStream source)
throws java.lang.Exception
source - The input stream source.
java.lang.Exception
public int next()
throws java.lang.Exception
next in interface StreamSourcejava.lang.Exception
public boolean hasMore()
throws java.lang.Exception
hasMore in interface StreamSourcejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||