|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.buffalo.nsf.xmlcqa.data.stream.FileTokenSink
An implementation of TokenSink
based on a file writer.
Field Summary | |
---|---|
protected java.io.PrintWriter |
out
A writer to which the tokens are being serialized. |
protected java.util.Stack |
stack
Stack contining currently opened tokens. |
Constructor Summary | |
---|---|
FileTokenSink(java.io.File f)
Standard constructor. |
|
FileTokenSink(java.lang.String fileName)
Standard constructor |
Method Summary | |
---|---|
void |
close()
Method closing the sink. |
void |
consume(Token t)
Method consuming a token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.PrintWriter out
protected java.util.Stack stack
Constructor Detail |
public FileTokenSink(java.io.File f) throws java.io.IOException
public FileTokenSink(java.lang.String fileName) throws java.io.IOException
Method Detail |
public void close()
TokenSink
close
in interface TokenSink
public void consume(Token t)
TokenSink
consume
in interface TokenSink
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |