Package com.baulsupp.kolja.log.line

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


    return reports.size() > 1;
  }

  protected void iterateThroughFile(LineIterator i) {
    while (i.hasNext()) {
      Line l = i.next();

      processLine(l);
    }
  }
View Full Code Here


    return reports.size() > 1;
  }

  protected void iterateThroughFile(LineIterator i) {
    while (i.hasNext()) {
      Line l = i.next();

      processLine(l);
    }
  }
View Full Code Here

  public int previous(int i) {
    model.moveTo(i);

    while (model.hasPrevious()) {
      Line l = (Line) model.previous();
      if (matches(l)) {
        return l.getOffset();
      }
    }
    return -1;
  }
View Full Code Here

  public int next(int i) {
    model.moveTo(i + 1);

    while (model.hasNext()) {
      Line l = (Line) model.next();
      if (matches(l)) {
        return l.getOffset();
      }
    }
    return -1;
  }
View Full Code Here

  public boolean hasNext() {
    return delegate.hasNext();
  }

  public Line next() {
    Line l = delegate.next();
   
    l.setValue(LogConstants.FILE_NAME, name);
   
    return l;
  }
View Full Code Here

    loadAhead();  
    if (availableLines.isEmpty()) {
      throw new NoSuchElementException();
    } else {
      Iterator<Line> i = availableLines.iterator();
      Line next = i.next();
      i.remove();
      return next;
    }
  }
View Full Code Here

    return true;
  }

  private Line parse(int from, int to) {
    Line line = lineParser.parse(content.subSequence(from, to));
    line.setOffset(from + offset);
    return line;
  }
View Full Code Here

  public Line next() {
    if (nextLine == null && !hasNext()) {
      throw new NoSuchElementException();
    }

    Line l = nextLine;

    nextLine = null;

    return l;
  }
View Full Code Here

    return true;
  }

  private Line parse(int from, int to) {
    Line line = lineParser.parse(content.subSequence(from, to));
    line.setOffset(from);
    return line;
  }
View Full Code Here

  public Line next() {
    if (nextLine == null && !hasNext()) {
      throw new NoSuchElementException();
    }

    Line l = nextLine;

    nextLine = null;

    return l;
  }
View Full Code Here

TOP

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

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.