Package org.unidal.helper.Splitters

Examples of org.unidal.helper.Splitters.StringSplitter


  protected void loadIndexes(File indexFile) throws IOException {
    BufferedReader reader = null;
    m_writeLock.lock();
    try {
      reader = new BufferedReader(new FileReader(indexFile));
      StringSplitter splitter = Splitters.by('\t');

      while (true) {
        String line = reader.readLine();

        if (line == null) { // EOF
          break;
        }

        List<String> parts = splitter.split(line);

        if (parts.size() >= 2) {
          String id = parts.remove(0);
          String offset = parts.remove(0);
View Full Code Here

TOP

Related Classes of org.unidal.helper.Splitters.StringSplitter

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.