V
- value type
See @see Graphvizpublic class PatriciaTrieFormatter<V>
extends java.lang.Object
PatriciaTrie
to dot format for debugging, inspection, etc.Constructor and Description |
---|
PatriciaTrieFormatter()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(PatriciaTrie<V> trie)
Format trie
|
java.lang.String |
format(PatriciaTrie<V> trie,
boolean formatBitString)
Format trie
|
void |
format(PatriciaTrie<V> trie,
java.io.File file)
Format trie and write to file
|
void |
format(PatriciaTrie<V> trie,
java.io.File file,
boolean formatBitString)
Format trie and write to file
|
public java.lang.String format(PatriciaTrie<V> trie)
trie
- trie to formatpublic java.lang.String format(PatriciaTrie<V> trie, boolean formatBitString)
trie
- trie to formatformatBitString
- true if the bits for this key should be included in the nodepublic void format(PatriciaTrie<V> trie, java.io.File file) throws java.io.FileNotFoundException
trie
- trie to formatfile
- file to write tojava.io.FileNotFoundException
- if the file exists but is a directory rather than a regular file,
does not exist but cannot be created, or cannot be opened for any other reasonpublic void format(PatriciaTrie<V> trie, java.io.File file, boolean formatBitString) throws java.io.FileNotFoundException
trie
- trie to formatfile
- file to write toformatBitString
- true if the bits for this key should be included in the nodejava.io.FileNotFoundException
- if the file exists but is a directory rather than a regular file,
does not exist but cannot be created, or cannot be opened for any other reason