|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscone.util.tokenstream.TokenOutputStream
scone.util.tokenstream.DummyTokenOutputStream
public class DummyTokenOutputStream
a dummy TokenOutputStream. Writes Tokens to nowhere.
| Constructor Summary | |
|---|---|
DummyTokenOutputStream()
creates a new DummyTokenOutputStream. |
|
| Method Summary | |
|---|---|
void |
close()
does nothing |
static TokenOutputStream |
create(RequestEvent e)
returns null |
protected java.lang.Object |
getBufferContext()
returns null |
MegObject |
getClone()
returns null |
java.io.InputStream |
getInputStream()
returns null |
java.io.Reader |
getReader()
returns null |
java.io.Reader |
getReader(java.lang.String encoding)
returns null |
void |
write(Token token)
does nothing |
void |
write(Token[] buf)
does nothing |
void |
write(Token[] buf,
int offset,
int length)
does nothing |
| Methods inherited from class scone.util.tokenstream.TokenOutputStream |
|---|
flush, getMetaInfo, getTimeout, isClosed, setMetaInfo, setTimeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyTokenOutputStream()
| Method Detail |
|---|
public static TokenOutputStream create(RequestEvent e)
throws java.lang.Exception
java.lang.Exceptionpublic java.io.InputStream getInputStream()
getInputStream in class TokenOutputStream
public java.io.Reader getReader()
throws java.io.UnsupportedEncodingException,
NotCharDataException
getReader in class TokenOutputStreamjava.io.UnsupportedEncodingException
NotCharDataException
public java.io.Reader getReader(java.lang.String encoding)
throws java.io.UnsupportedEncodingException,
NotCharDataException
getReader in class TokenOutputStreamencoding - the desired character encoding.
java.io.UnsupportedEncodingException
NotCharDataExceptionpublic MegObject getClone()
getClone in class TokenOutputStream
public void write(Token[] buf,
int offset,
int length)
throws java.io.IOException
write in class TokenOutputStreambuf - The Token buffer array.offset - Offset in the array to start writing from.length - The amount from offset to write.
java.io.IOException - If unable to write to stream.
public void write(Token token)
throws java.io.IOException
write in class TokenOutputStreamtoken - the Token to write.
java.io.IOException - If unable to write to stream.
public void write(Token[] buf)
throws java.io.IOException
write in class TokenOutputStreambuf - The Token array to write.
java.io.IOException - If unable to write to stream.
public void close()
throws java.io.IOException
close in class TokenOutputStreamjava.io.IOException - If error occurred closing stream.protected java.lang.Object getBufferContext()
getBufferContext in class TokenOutputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||