* @param document document feed to find the parser for.
* @return the parser for the given document or <b>null</b> if there is no parser for that document.
*
*/
public WireFeedParser getParserFor(Document document) {
WireFeedParser parser = null;
for (int i=0;parser==null && i<PARSERS.size();i++) {
parser = (WireFeedParser) PARSERS.get(i);
if (!parser.isMyType(document)) {
parser = null;
}
}
return parser;
}