for(String entry: dirServers) {
builder.append(entry);
builder.append('\n');
}
final ByteBuffer buffer = ByteBuffer.wrap(builder.toString().getBytes(Tor.getDefaultCharset()));
final DocumentFieldParser parser = new DocumentFieldParserImpl(buffer);
parser.setHandler(new DocumentParsingHandler() {
public void endOfDocument() {}
public void parseKeywordLine() { processKeywordLine(parser);}
});
parser.processDocument();
}