Home
last modified time | relevance | path

Searched refs:XMLFileReader (Results 1 – 25 of 44) sorted by relevance

12

/external/cldr/tools/java/org/unicode/cldr/tool/
DReadXMB.java8 import org.unicode.cldr.util.XMLFileReader;
27 XMLFileReader xfr = new XMLFileReader().setHandler(simpleHandler); in load()
28 xfr.read(directory + "/" + file, XMLFileReader.CONTENT_HANDLER | XMLFileReader.ERROR_HANDLER in load()
29 | XMLFileReader.LEXICAL_HANDLER, true); in load()
34 private static class CasingHandler extends XMLFileReader.SimpleHandler {
DCompareHanTransliterators.java8 import org.unicode.cldr.util.XMLFileReader;
9 import org.unicode.cldr.util.XMLFileReader.SimpleHandler;
19 XMLFileReader reader = new XMLFileReader(); in main()
23 XMLFileReader.CONTENT_HANDLER, false); in main()
29 XMLFileReader.CONTENT_HANDLER, false); in main()
DExtractMessages.java24 import org.unicode.cldr.util.XMLFileReader;
64 XMLFileReader xfr = new XMLFileReader().setHandler(new EnglishHandler()); in main()
65 xfr.read(src + "/en.xmb", XMLFileReader.CONTENT_HANDLER in main()
66 | XMLFileReader.ERROR_HANDLER, false); in main()
95 xfr = new XMLFileReader().setHandler(otherHandler); in main()
97 xfr.read(canonicalFile, XMLFileReader.CONTENT_HANDLER in main()
98 | XMLFileReader.ERROR_HANDLER, false); in main()
167 private static class EnglishHandler extends XMLFileReader.SimpleHandler {
197 private static class OtherHandler extends XMLFileReader.SimpleHandler {
DGenerateTransform.java16 import org.unicode.cldr.util.XMLFileReader;
287 XMLFileReader xfr = new XMLFileReader().setHandler(myHandler); in transformFromCldrFile()
288 xfr.read(TRANSFORM_DIRECTORY + transformName + ".xml", XMLFileReader.CONTENT_HANDLER in transformFromCldrFile()
289 | XMLFileReader.ERROR_HANDLER, false); in transformFromCldrFile()
295 static class MyHandler extends XMLFileReader.SimpleHandler {
DSearchXml.java23 import org.unicode.cldr.util.XMLFileReader;
254 XMLFileReader xfr = new XMLFileReader().setHandler(listHandler); in getXmlFileAsRelation()
257 xfr.read(fileName2, XMLFileReader.CONTENT_HANDLER in getXmlFileAsRelation()
258 | XMLFileReader.ERROR_HANDLER, false); in getXmlFileAsRelation()
269 static class ListHandler extends XMLFileReader.SimpleHandler {
DRemoveEmptyCLDR.java14 import org.unicode.cldr.util.XMLFileReader;
36 XMLFileReader.loadPathValues(canonicalPath, data, false); in main()
DSubdivisionNames.java14 import org.unicode.cldr.util.XMLFileReader;
30 XMLFileReader.loadPathValues(CLDRPaths.COMMON_DIRECTORY + "subdivisions/" in SubdivisionNames()
DXMLModify.java16 import org.unicode.cldr.util.XMLFileReader;
77 for (Pair<String, String> pathValue : XMLFileReader.loadPathValues( in main()
DConvertXTB.java34 import org.unicode.cldr.util.XMLFileReader;
345 private class WsbHandler extends XMLFileReader.SimpleHandler {
429 XMLReader xmlReader = XMLFileReader.createXMLReader(false); in load()
460 XMLFileReader xfr = new XMLFileReader().setHandler(handler); in loadOldMessages()
DVerifyAttributeValues.java29 import org.unicode.cldr.util.XMLFileReader;
30 import org.unicode.cldr.util.XMLFileReader.SimpleHandler;
80 new XMLFileReader() in check()
DGenerateItemCounts.java38 import org.unicode.cldr.util.XMLFileReader;
39 import org.unicode.cldr.util.XMLFileReader.SimpleHandler;
702 XMLFileReader reader = new XMLFileReader().setHandler(myHandler); in check()
703 reader.read(systemID, XMLFileReader.CONTENT_HANDLER, true); in check()
735 System.out.println("\nerror: " + XMLFileReader.showSAX(exception)); in error()
740 System.out.println("\nfatalError: " + XMLFileReader.showSAX(exception)); in fatalError()
745 System.out.println("\nwarning: " + XMLFileReader.showSAX(exception)); in warning()
/external/cldr/tools/java/org/unicode/cldr/util/
DXMLFileReader.java43 public class XMLFileReader { class
73 public XMLFileReader setHandler(SimpleHandler simpleHandler) { in setHandler()
90 public XMLFileReader read(String fileName, int handlers, boolean validating) { in read()
108 public XMLFileReader read(String fileName, InputStream fis, int handlers, boolean validating) { in read()
121 public XMLFileReader readCLDRResource(String resName, int handlers, boolean validating) { in readCLDRResource()
135 …public XMLFileReader read(String resName, Class<?> callingClass, int handlers, boolean validating)… in read()
140 public XMLFileReader read(String systemID, Reader reader, int handlers, boolean validating) { in read()
461 new XMLFileReader() in loadPathValues()
DVoteResolver.java1438 XMLFileReader xfr = new XMLFileReader().setHandler(myHandler); in setVoterToInfo()
1439 xfr.read(fileName, XMLFileReader.CONTENT_HANDLER | XMLFileReader.ERROR_HANDLER, false); in setVoterToInfo()
1486 static class MyHandler extends XMLFileReader.SimpleHandler {
1554 XMLFileReader xfr = new XMLFileReader().setHandler(myHandler); in getIdToPath()
1555 xfr.read(fileName, XMLFileReader.CONTENT_HANDLER | XMLFileReader.ERROR_HANDLER, false); in getIdToPath()
1559 static class XPathTableHandler extends XMLFileReader.SimpleHandler {
1577 XMLFileReader xfr = new XMLFileReader().setHandler(myHandler); in getBaseToAlternateToInfo()
1578 xfr.read(fileName, XMLFileReader.CONTENT_HANDLER | XMLFileReader.ERROR_HANDLER, false); in getBaseToAlternateToInfo()
1630 static class VotesHandler extends XMLFileReader.SimpleHandler {
DIsoCurrencyParser.java173 XMLFileReader xfr = new XMLFileReader().setHandler(isoCurrentHandler); in IsoCurrencyParser()
209 public class ISOCurrencyHandler extends XMLFileReader.SimpleHandler {
DTestUtilities.java402 XMLFileReader xfr = new XMLFileReader().setHandler(new MyHandler()); in writeMetaData()
403 xfr.read(CLDRPaths.GEN_DIRECTORY + "meta/metaData.xml", XMLFileReader.CONTENT_HANDLER in writeMetaData()
404 | XMLFileReader.ERROR_HANDLER, false); in writeMetaData()
408 XMLFileReader xfr = new XMLFileReader().setHandler(new MyHandler()); in testXMLFileReader()
412 static class MyHandler extends XMLFileReader.SimpleHandler {
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestBcp47Transforms.java24 import org.unicode.cldr.util.XMLFileReader;
229 XMLFileReader xfr = new XMLFileReader().setHandler(myHandler); in getIcuRulesFromXmlFile()
230 xfr.read(dir + cldrFileName, XMLFileReader.CONTENT_HANDLER in getIcuRulesFromXmlFile()
231 | XMLFileReader.ERROR_HANDLER, true); in getIcuRulesFromXmlFile()
DTestPathsModule.java21 import org.unicode.cldr.util.XMLFileReader;
22 import org.unicode.cldr.util.XMLFileReader.SimpleHandler;
74 XMLFileReader reader = new XMLFileReader() in TestMain()
76 reader.read(fullFileName, XMLFileReader.CONTENT_HANDLER, true); in TestMain()
DTestCLDRUtils.java26 import org.unicode.cldr.util.XMLFileReader;
156 XMLFileReader myReader = new XMLFileReader(); in oldTestCLDRLocaleDataDriven()
163 myReader.setHandler(new XMLFileReader.SimpleHandler() { in oldTestCLDRLocaleDataDriven()
DTestCldrFileWrite.java17 import org.unicode.cldr.util.XMLFileReader;
96 Multiset<Pair<String, String>> cldrPaths = HashMultiset.create(XMLFileReader.loadPathValues( in checkCompareXmlFiles()
98 … Multiset<Pair<String, String>> rewritePaths = HashMultiset.create(XMLFileReader.loadPathValues( in checkCompareXmlFiles()
DTestSubdivisions.java24 import org.unicode.cldr.util.XMLFileReader;
78 XMLFileReader.loadPathValues(SUB_DIR + file, data, true); in checkSubdivisionFile()
/external/cldr/tools/java/org/unicode/cldr/test/
DTestMetadata.java17 import org.unicode.cldr.util.XMLFileReader;
133XMLFileReader xfr = new XMLFileReader().setHandler(new MyHandler(elements, attributes, elementOrde… in getElementsAndAttributes()
232 static class MyHandler extends XMLFileReader.SimpleHandler {
DCasingInfo.java29 import org.unicode.cldr.util.XMLFileReader;
109 XMLFileReader xfr = new XMLFileReader().setHandler(handler); in loadFromXml()
247 private class CasingHandler extends XMLFileReader.SimpleHandler {
DQuickCheck.java32 import org.unicode.cldr.util.XMLFileReader;
135 System.out.println("\nerror: " + XMLFileReader.showSAX(exception)); in error()
140 System.out.println("\nfatalError: " + XMLFileReader.showSAX(exception)); in fatalError()
145 System.out.println("\nwarning: " + XMLFileReader.showSAX(exception)); in warning()
153 XMLReader xmlReader = XMLFileReader.createXMLReader(true); in check()
/external/cldr/tools/java/org/unicode/cldr/icu/
DMapperUtils.java15 import org.unicode.cldr.util.XMLFileReader;
39 XMLReader xmlReader = XMLFileReader.createXMLReader(true); in parseFile()
/external/cldr/tools/java/org/unicode/cldr/draft/
DKeyboard.java21 import org.unicode.cldr.util.XMLFileReader;
22 import org.unicode.cldr.util.XMLFileReader.SimpleHandler;
139 new XMLFileReader() in getPlatform()
181 new XMLFileReader() in getKeyboard()
194 new XMLFileReader() in getKeyboard()

12