public void format(PatriciaTrie<V> trie, File file, boolean formatBitString) throws FileNotFoundException {
        PrintWriter writer = new PrintWriter(new FileOutputStream(file));
        writer.println(format(trie, formatBitString));
        writer.close();
    }
public void format ( PatriciaTrie < V > trie , File file , boolean formatBitString ) throws FileNotFoundException { PrintWriter writer = new PrintWriter ( new FileOutputStream ( file ) ) ; writer . println ( format ( trie , formatBitString ) ) ; writer . close ( ) ; }
Format trie and write to file

@param trie  trie to format
@param file  file to write to
@param formatBitString  true if the bits for this key should be included in the node
@throws 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