parser.setHandler(new DocumentParsingHandler() {
public void endOfDocument() {}
public void parseKeywordLine() { processKeywordLine(parser);}
});
parser.processDocument();
}
private void processKeywordLine(DocumentFieldParser fieldParser) {
final DirectoryAuthorityStatus status = new DirectoryAuthorityStatus();
status.setNickname(fieldParser.parseNickname());