Mercurial > hg > fulltextIndexer
comparison src/de/mpiwg/dwinter/fulltextIndexer/utils/ParseIndexMeta.java @ 0:dc7622afcfea default tip
initial
author | dwinter |
---|---|
date | Wed, 03 Nov 2010 12:33:16 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:dc7622afcfea |
---|---|
1 /* */ package de.mpiwg.dwinter.fulltextIndexer.utils; | |
2 /* */ | |
3 /* */ import java.util.HashMap; | |
4 /* */ import org.xml.sax.Attributes; | |
5 /* */ import org.xml.sax.ContentHandler; | |
6 /* */ import org.xml.sax.Locator; | |
7 /* */ import org.xml.sax.SAXException; | |
8 /* */ | |
9 /* */ public class ParseIndexMeta | |
10 /* */ implements ContentHandler | |
11 /* */ { | |
12 /* 23 */ public HashMap<String, String> value = new HashMap(); | |
13 /* 24 */ private String currentToken = new String(); | |
14 /* 25 */ public String lang = new String(); | |
15 /* */ | |
16 /* */ public void startDocument() | |
17 /* */ throws SAXException | |
18 /* */ { | |
19 /* */ } | |
20 /* */ | |
21 /* */ public void endDocument() | |
22 /* */ throws SAXException | |
23 /* */ { | |
24 /* */ } | |
25 /* */ | |
26 /* */ public void characters(char[] c, int start, int length) | |
27 /* */ throws SAXException | |
28 /* */ { | |
29 /* 41 */ char[] dest = (char[])null; | |
30 /* 42 */ if (!((this.currentToken != null & this.currentToken.equals("lang")))) | |
31 /* */ return; | |
32 /* 44 */ dest = new char[length]; | |
33 /* 45 */ System.arraycopy(c, start, dest, 0, length); | |
34 /* 46 */ this.lang = new String(dest); | |
35 /* */ } | |
36 /* */ | |
37 /* */ public void ignorableWhitespace(char[] c, int start, int length) | |
38 /* */ throws SAXException | |
39 /* */ { | |
40 /* */ } | |
41 /* */ | |
42 /* */ public void processingInstruction(String target, String data) | |
43 /* */ throws SAXException | |
44 /* */ { | |
45 /* */ } | |
46 /* */ | |
47 /* */ public void setDocumentLocator(Locator arg1) | |
48 /* */ { | |
49 /* */ } | |
50 /* */ | |
51 /* */ public void endElement(String uri, String localName, String name) | |
52 /* */ throws SAXException | |
53 /* */ { | |
54 /* 70 */ this.currentToken = ""; | |
55 /* */ } | |
56 /* */ | |
57 /* */ public void endPrefixMapping(String prefix) | |
58 /* */ throws SAXException | |
59 /* */ { | |
60 /* */ } | |
61 /* */ | |
62 /* */ public void skippedEntity(String name) | |
63 /* */ throws SAXException | |
64 /* */ { | |
65 /* */ } | |
66 /* */ | |
67 /* */ public void startElement(String uri, String localName, String name, Attributes attrs) | |
68 /* */ throws SAXException | |
69 /* */ { | |
70 /* 88 */ if (name.equals("lang")) | |
71 /* 89 */ this.currentToken = "lang"; | |
72 /* */ else | |
73 /* 91 */ this.currentToken = ""; | |
74 /* */ } | |
75 /* */ | |
76 /* */ public void startPrefixMapping(String prefix, String uri) | |
77 /* */ throws SAXException | |
78 /* */ { | |
79 /* */ } | |
80 /* */ } | |
81 | |
82 /* Location: /private/tmp/fulltextIndexer.jar | |
83 * Qualified Name: de.mpiwg.dwinter.fulltextIndexer.utils.ParseIndexMeta | |
84 * JD-Core Version: 0.5.4 | |
85 */ |