/** * Marks the current position. */ protected void mark() { if (pipe != null) { Position p = pipe.getPosition(); mark.line = p.line; mark.column = p.column; mark.position = p.position; } }
/** * Marks the current position. */ protected void mark() { if (pipe != null) { Position p = pipe.getPosition(); mark.line = p.line; mark.column = p.column; mark.position = p.position; } }
/** * Marks the current position. */ protected void mark() { if (pipe != null) { Position p = pipe.getPosition(); mark.line = p.line; mark.column = p.column; mark.position = p.position; } }
/** * Returns the current position into the reader or input stream. * * @return * The current position into the reader or input stream. * <br>Never <jk>null</jk>. */ public Position getPosition() { if (mark.line != -1 || mark.column != -1 || mark.position != -1) return mark; if (pipe == null) return Position.UNKNOWN; return pipe.getPosition(); }
/** * Returns the current position into the reader or input stream. * * @return * The current position into the reader or input stream. * <br>Never <jk>null</jk>. */ public Position getPosition() { if (mark.line != -1 || mark.column != -1 || mark.position != -1) return mark; if (pipe == null) return Position.UNKNOWN; return pipe.getPosition(); }
/** * Returns the current position into the reader or input stream. * * @return * The current position into the reader or input stream. * <br>Never <jk>null</jk>. */ public Position getPosition() { if (mark.line != -1 || mark.column != -1 || mark.position != -1) return mark; if (pipe == null) return Position.UNKNOWN; return pipe.getPosition(); }