Package com.baulsupp.kolja.log.line

Examples of com.baulsupp.kolja.log.line.BasicLineIterator


      if (showEvents) {
        EventDetector eventList = format.getEventDetector();
        setEventList(eventList);
      }

      lineIterator = new BasicLineIterator(li, intRange);
    } else {
      lineIterator = lineIndexFactory.buildForwardsLineIterator(file, format, intRange);
    }

    run(file, lineIterator);
View Full Code Here


        EventDetector eventList = format.getEventDetector();
        setEventList(eventList);
      }

      IntRange intRange2 = intRange == null ? null : new IntRange(intRange);
      lineIterator = new BasicLineIterator(li, intRange2);
    } else {
      lineIterator = lineIndexFactory.buildForwardsLineIterator(file, format, intRange);
    }

    run(file, lineIterator);
View Full Code Here

  }

  public static Iterator<Line> loadLineIterator(LogFormat format, CharSequence sequence) {
    LineIndex lineIndex = format.getLineIndex(sequence);

    return new BasicLineIterator(lineIndex);
  }
View Full Code Here

  public static Iterator<Line> loadByRequests(CharSequence buffer, LogFormat format) {
    LineIndex lineIndex = format.getLineIndex(buffer);

    StandardRequestIndex requestIndex = format.getRequestIndex(lineIndex);

    return new BasicLineIterator(requestIndex);
  }
View Full Code Here

  @Deprecated
  public static BasicLineIterator load(CharSequence buffer, LogFormat format) {
    LineIndex lineIndex = format.getLineIndex(buffer);

    return new BasicLineIterator(lineIndex);
  }
View Full Code Here

  }

  public static Iterator<Line> loadLineIterator(LogFormat format, CharSequence sequence) {
    LineIndex lineIndex = format.getLineIndex(sequence);

    return new BasicLineIterator(lineIndex);
  }
View Full Code Here

    setModel(getNextLineModel());
  }

  void setModel(LineIndex li) {
    currentIndex = li;
    list.setModel(new LineIndexItemModel(new BasicLineIterator(li)));

    if (search != null) {
      search.setModel(new LineIndexItemModel(new BasicLineIterator(currentIndex)));
    }
  }
View Full Code Here

    Pattern pattern = Pattern.compile(a);

    search = new BasicSearch(pattern);

    search.setModel(new LineIndexItemModel(new BasicLineIterator(currentIndex)));

    basicSearchHighlight.setPattern(pattern);

    nextSearchResult();
  }
View Full Code Here

      File f = new File(cmd.getArgs()[0]);
      ReloadableCharBuffer buffer = ReloadableCharBuffer.fromFileReloadable(f);
     
      LineIndex lineIndex = format.getLineIndex(buffer);

      BasicLineIterator i = new BasicLineIterator(lineIndex);
     
      EventList eventIndex = format.getEventList(lineIndex);
     
      while (i.hasNext()) {
        Line line = i.next();
        Event event = eventIndex.readEvent(line);
       
        if (event != null) {
          System.out.println(event.toString());
        }
View Full Code Here

    Pattern pattern = Pattern.compile(a);

    search = new BasicSearch(pattern);

    search.setModel(new LineIndexItemModel(new BasicLineIterator(less.getLineIndex())));

    basicSearchHighlight.setPattern(pattern);

    nextSearchResult(less);
  }
View Full Code Here

TOP

Related Classes of com.baulsupp.kolja.log.line.BasicLineIterator

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.