|
||||||||||
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.Exception
public java.io.InputStream getInputStream()
getInputStream
in class TokenOutputStream
public java.io.Reader getReader() throws java.io.UnsupportedEncodingException, NotCharDataException
getReader
in class TokenOutputStream
java.io.UnsupportedEncodingException
NotCharDataException
public java.io.Reader getReader(java.lang.String encoding) throws java.io.UnsupportedEncodingException, NotCharDataException
getReader
in class TokenOutputStream
encoding
- the desired character encoding.
java.io.UnsupportedEncodingException
NotCharDataException
public MegObject getClone()
getClone
in class TokenOutputStream
public void write(Token[] buf, int offset, int length) throws java.io.IOException
write
in class TokenOutputStream
buf
- 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 TokenOutputStream
token
- 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 TokenOutputStream
buf
- The Token array to write.
java.io.IOException
- If unable to write to stream.public void close() throws java.io.IOException
close
in class TokenOutputStream
java.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 |