Package com.baulsupp.kolja.log.line.matcher

Examples of com.baulsupp.kolja.log.line.matcher.NewLineEntryPattern


    throw new IllegalStateException("line parser not found");
  }

  private EntryPattern parseEntryPattern(Element e) {
    if (e.getTagName().equals("new-line-entry-pattern")) {
      return new NewLineEntryPattern();
    }

    if (e.getTagName().equals("regex-entry-pattern")) {
      return parseRegexEntryPattern(e);
    }
View Full Code Here


  public String getRequestField() {
    return null;
  }

  public EntryPattern getEntryPattern() {
    return new NewLineEntryPattern();
  }
View Full Code Here

      return (lineNumber + 1) * (positionRead / linesRead + 1) + 100;
    }
  }

  public static LineNumberIndex create(CharSequence buffer) {
    EntryPattern p = new NewLineEntryPattern();
    MemoryLogEntryIndex rawIndex = new MemoryLogEntryIndex(buffer, p);
    BufferedLogEntryIndex entryIndex = new BufferedLogEntryIndex(rawIndex);

    return new BasicLineNumberIndex(entryIndex, buffer);
  }
View Full Code Here

TOP

Related Classes of com.baulsupp.kolja.log.line.matcher.NewLineEntryPattern

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.