org.apache.lucene.analysis
Class TokenStreamToDot
java.lang.Object
org.apache.lucene.analysis.TokenStreamToDot
public class TokenStreamToDot
- extends Object
Consumes a TokenStream and outputs the dot (graphviz) string (graph).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected final PrintWriter out
TokenStreamToDot
public TokenStreamToDot(String inputText,
TokenStream in,
PrintWriter out)
- If inputText is non-null, and the TokenStream has
offsets, we include the surface form in each arc's
label.
toDot
public void toDot()
throws IOException
- Throws:
IOException
writeArc
protected void writeArc(int fromNode,
int toNode,
String label,
String style)
writeNode
protected void writeNode(int name,
String label)
writeHeader
protected void writeHeader()
- Override to customize.
writeTrailer
protected void writeTrailer()
- Override to customize.