*) minor enhancements

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7405 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
low012 14 years ago
parent ecfacabad0
commit a001e8075c

@ -48,6 +48,7 @@ public class mmParser extends AbstractParser implements Parser {
super("FreeMind Parser");
SUPPORTED_EXTENSIONS.add("mm");
SUPPORTED_MIME_TYPES.add("application/freemind");
SUPPORTED_MIME_TYPES.add("application/x-freemind");
}
public Document[] parse(final MultiProtocolURI location, final String mimeType,
@ -100,17 +101,18 @@ public class mmParser extends AbstractParser implements Parser {
false)};
}
private class FreeMindHandler extends DefaultHandler {
private static class FreeMindHandler extends DefaultHandler {
private List<String> nodeText = new ArrayList<String>();
@Override
public void startElement(final String uri, final String localName,
final String qName, final Attributes attributes) {
final String textValue = attributes.getValue("TEXT");
if (textValue != null) {
nodeText.add(textValue);
if (qName.equals("node")) {
final String textValue = attributes.getValue("TEXT");
if (textValue != null) {
nodeText.add(textValue);
}
}
}

@ -46,7 +46,7 @@ import net.yacy.document.Parser;
public class sidAudioParser extends AbstractParser implements Parser {
public sidAudioParser() {
super("Commodore 64 SID audio file Parser");
super("Commodore 64 SID Audio File Parser");
SUPPORTED_EXTENSIONS.add("sid");
SUPPORTED_MIME_TYPES.add("audio/prs.sid");
SUPPORTED_MIME_TYPES.add("audio/psid");

Loading…
Cancel
Save