Package clear.ftr.xml

Examples of clear.ftr.xml.SRLFtrXml


    final String s_language = AbstractReader.LANG_EN;

    ZipInputStream zin = new ZipInputStream(inputStream);
    ZipEntry zEntry;
    String entry;
    SRLFtrXml xml = null;
    SRLFtrMap[] map = new SRLFtrMap[2];
    OneVsAllDecoder[] decoder = new OneVsAllDecoder[2];

    while ((zEntry = zin.getNextEntry()) != null) {
      if (zEntry.getName().equals(ENTRY_FEATURE)) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(zin));
        StringBuilder build = new StringBuilder();
        String string;

        while ((string = reader.readLine()) != null) {
          build.append(string);
          build.append("\n");
        }

        xml = new SRLFtrXml(new ByteArrayInputStream(build.toString().getBytes()));

      } else if ((entry = zEntry.getName()).startsWith(ENTRY_LEXICA)) {
        int i = Integer.parseInt(entry.substring(entry.lastIndexOf(".") + 1));
        map[i] = new SRLFtrMap(new BufferedReader(new InputStreamReader(zin)));
View Full Code Here

TOP

Related Classes of clear.ftr.xml.SRLFtrXml

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.