public boolean markSupported() { return delegate.markSupported(); }
public boolean markSupported() { return inner.markSupported(); } public void mark(int readAheadLimit) throws IOException { inner.mark( readAheadLimit ); }
public void reset() throws IOException { if (reader.markSupported()) { reader.mark(0); } reader.reset(); buffer = null; index = 0; offset = 0; words = null; }
/** * This method tries to determine whether the reader produces lines in the * format of the ModSecurity 2.x serial audit-log files. * * @param r * The reader to read audit-data from. * @return <code>true</code> if the audit-log data could be parsed using the * ModSecurity 2.x audit-format. * @throws IOException * In case an I/O (read) error occurred. */ public static boolean isSerial2xLog(BufferedReader r) throws IOException { if (r.markSupported()) r.mark(4096); int retry = 10; while (retry-- > 0) { String line = r.readLine(); if (line == null) return false; if (line.matches("^--[A-Za-z0-9]*-A--$")) { if (r.markSupported()) r.reset(); return true; } } if (r.markSupported()) r.reset(); return false; }
if (r.markSupported()) r.mark(4096); if (r.markSupported()) r.reset(); return true; if (r.markSupported()) r.reset(); } catch (Exception e) {
if (r.markSupported()) r.mark(4096); AuditEvent evt = AccessLogAuditReader.createEvent(line); if (evt != null) { if (r.markSupported()) r.reset(); return true; if (r.markSupported()) r.reset(); return false;
if (in.markSupported()) {
String line = ""; if (!in.markSupported()) { LOGGER.warn("input stream does not support marking!"); } else { if (in.markSupported()) { in.mark(200); if (in.markSupported()) { try { in.reset();
String line = ""; if (!in.markSupported()) { LOG.warning("input stream does not support marking!"); if (in.markSupported()) { in.mark(200); if (in.markSupported()) { try { in.reset();
if (!reader.markSupported()) { throw new IllegalArgumentException("Mark not supported for reader.");
String line = ""; if (!in.markSupported()) { LOGGER.warn("input stream does not support marking!"); } else { if (in.markSupported()) { in.mark(200); if (in.markSupported()) { try { in.reset();
if (reader.markSupported()){ reader.mark(100000);
if( reader.markSupported() ) reader.reset(); return null;
if( reader.markSupported() ) reader.reset(); return null;
if (!inStream.markSupported()) if (inStream.markSupported() && monitorFile) inStream.mark(16384); String line = inStream.readLine(); while (line != null) inStream.markSupported() && lastSubtitle[i] == SUBTITLE_OK && line == null ? SUBTITLE_RETRY : SUBTITLE_OK; if (inStream.markSupported() && monitorFile && lastSubtitle[i] == SUBTITLE_OK) inStream.mark(16384); if (inStream.markSupported() && monitorFile) inStream.reset(); if (inStream.markSupported() && monitorFile) inStream.reset();
if (!reader.markSupported()) { throw new FileException("BufferedReader of this JVM dose not support mark method");
skipLfMark = skipLf; reopenOnReset = false; if (reader.markSupported()) { if (readAheadLimit >= reopenOnResetThreshold) { reader.mark(reopenOnResetThreshold); if (reopenOnReset || readSinceMark.compareTo(reopenOnResetThresholdBI) >= 0 || !reader.markSupported()) { if (!reopenAt(mark)) { throw new IOException("reopening at position failed");
if (!in.markSupported()) { LOGGER.warn("input stream does not support marking!"); } else {