/** * Constructor */ Mark(Mark other) { init(other, false); }
/** * Constructor */ Mark(Mark other) { init(other, false); }
/** * Constructor */ Mark(Mark other) { init(other, false); }
/** * Constructor */ Mark(Mark other) { init(other, false); }
/** * A faster approach than calling {@link #mark()} & {@link #nextChar()}. * However, this approach is only safe if the mark is only used within the * JspReader. */ private int nextChar(Mark mark) { if (!hasMoreInput()) { return -1; } int ch = current.stream[current.cursor]; mark.init(current, true); current.cursor++; if (ch == '\n') { current.line++; current.col = 0; } else { current.col++; } return ch; }
/** * A faster approach than calling {@link #mark()} & {@link #nextChar()}. * However, this approach is only safe if the mark is only used within the * JspReader. */ private int nextChar(Mark mark) throws JasperException { if (!hasMoreInput()) { return -1; } int ch = current.stream[current.cursor]; mark.init(current, singleFile); current.cursor++; if (ch == '\n') { current.line++; current.col = 0; } else { current.col++; } return ch; }
/** * A faster approach than calling {@link #mark()} & {@link #nextChar()}. * However, this approach is only safe if the mark is only used within the * JspReader. */ private int nextChar(Mark mark) throws JasperException { if (!hasMoreInput()) { return -1; } int ch = current.stream[current.cursor]; mark.init(current, singleFile); current.cursor++; if (ch == '\n') { current.line++; current.col = 0; } else { current.col++; } return ch; }
/** * A faster approach than calling {@link #mark()} & {@link #nextChar()}. * However, this approach is only safe if the mark is only used within the * JspReader. */ private int nextChar(Mark mark) { if (!hasMoreInput()) { return -1; } int ch = current.stream[current.cursor]; mark.init(current, true); current.cursor++; if (ch == '\n') { current.line++; current.col = 0; } else { current.col++; } return ch; }