Mercurial > hg > fulltextIndexer
view src/de/mpiwg/dwinter/fulltextIndexer/utils/.svn/text-base/ParseIndexMeta.java.svn-base @ 0:dc7622afcfea default tip
initial
author | dwinter |
---|---|
date | Wed, 03 Nov 2010 12:33:16 +0100 |
parents | |
children |
line wrap: on
line source
/* */ package de.mpiwg.dwinter.fulltextIndexer.utils; /* */ /* */ import java.util.HashMap; /* */ import org.xml.sax.Attributes; /* */ import org.xml.sax.ContentHandler; /* */ import org.xml.sax.Locator; /* */ import org.xml.sax.SAXException; /* */ /* */ public class ParseIndexMeta /* */ implements ContentHandler /* */ { /* 23 */ public HashMap<String, String> value = new HashMap(); /* 24 */ private String currentToken = new String(); /* 25 */ public String lang = new String(); /* */ /* */ public void startDocument() /* */ throws SAXException /* */ { /* */ } /* */ /* */ public void endDocument() /* */ throws SAXException /* */ { /* */ } /* */ /* */ public void characters(char[] c, int start, int length) /* */ throws SAXException /* */ { /* 41 */ char[] dest = (char[])null; /* 42 */ if (!((this.currentToken != null & this.currentToken.equals("lang")))) /* */ return; /* 44 */ dest = new char[length]; /* 45 */ System.arraycopy(c, start, dest, 0, length); /* 46 */ this.lang = new String(dest); /* */ } /* */ /* */ public void ignorableWhitespace(char[] c, int start, int length) /* */ throws SAXException /* */ { /* */ } /* */ /* */ public void processingInstruction(String target, String data) /* */ throws SAXException /* */ { /* */ } /* */ /* */ public void setDocumentLocator(Locator arg1) /* */ { /* */ } /* */ /* */ public void endElement(String uri, String localName, String name) /* */ throws SAXException /* */ { /* 70 */ this.currentToken = ""; /* */ } /* */ /* */ public void endPrefixMapping(String prefix) /* */ throws SAXException /* */ { /* */ } /* */ /* */ public void skippedEntity(String name) /* */ throws SAXException /* */ { /* */ } /* */ /* */ public void startElement(String uri, String localName, String name, Attributes attrs) /* */ throws SAXException /* */ { /* 88 */ if (name.equals("lang")) /* 89 */ this.currentToken = "lang"; /* */ else /* 91 */ this.currentToken = ""; /* */ } /* */ /* */ public void startPrefixMapping(String prefix, String uri) /* */ throws SAXException /* */ { /* */ } /* */ } /* Location: /private/tmp/fulltextIndexer.jar * Qualified Name: de.mpiwg.dwinter.fulltextIndexer.utils.ParseIndexMeta * JD-Core Version: 0.5.4 */