Tabnine Logo
BufferedReader.markSupported
Code IndexAdd Tabnine to your IDE (free)

How to use
markSupported
method
in
java.io.BufferedReader

Best Java code snippets using java.io.BufferedReader.markSupported (Showing top 18 results out of 315)

origin: com.atlassian.jira/jira-core

public boolean markSupported()
{
  return delegate.markSupported();
}
origin: com.mchange/mchange-commons-java

public boolean markSupported()                                       { return inner.markSupported(); }
public void mark(int readAheadLimit) throws IOException              { inner.mark( readAheadLimit ); }
origin: org.tinygroup/org.tinygroup.chineseanalyzer

public void reset() throws IOException {
  if (reader.markSupported()) {
    reader.mark(0);
  }
  reader.reset();
  buffer = null;
  index = 0;
  offset = 0;
  words = null;
}
origin: org.jwall/org.jwall.web.audit

/**
 * 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;
}
origin: org.jwall/org.jwall.web.audit

  if (r.markSupported())
    r.mark(4096);
      if (r.markSupported())
        r.reset();
      return true;
  if (r.markSupported())
    r.reset();
} catch (Exception e) {
origin: org.jwall/org.jwall.web.audit

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;
origin: stackoverflow.com

if (in.markSupported()) {
origin: com.github.meirfaraj/gcAnalyser-lib

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();
origin: com.mgmtp.gcviewer/gcviewer

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();
origin: net.loomchild/segment

if (!reader.markSupported()) {
  throw new IllegalArgumentException("Mark not supported for reader.");
origin: com.github.meirfaraj/gcAnalyser-lib

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();
origin: IQSS/dataverse

if (reader.markSupported()){
  reader.mark(100000);
origin: org.jwall/org.jwall.web.audit

if( reader.markSupported() )
  reader.reset();
return null;
origin: org.jwall/org.jwall.web.audit

if( reader.markSupported() )
  reader.reset();
return null;
origin: google/sagetv

  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();
origin: jp.terasoluna.fw/terasoluna-filedao

if (!reader.markSupported()) {
  throw new FileException("BufferedReader of this JVM dose not support mark method");
origin: stackoverflow.com

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");
origin: com.github.meirfaraj/gcAnalyser-lib

if (!in.markSupported()) {
  LOGGER.warn("input stream does not support marking!");
} else {
java.ioBufferedReadermarkSupported

Javadoc

Indicates whether this reader supports the mark() and reset() methods. This implementation returns true.

Popular methods of BufferedReader

  • <init>
    Creates a buffering character-input stream that uses an input buffer of the specified size.
  • readLine
    Reads a line of text. A line is considered to be terminated by any one of a line feed ('\n'), a carr
  • close
    Closes this reader. This implementation closes the buffered source reader and releases the buffer. N
  • read
    Reads characters into a portion of an array. This method implements the general contract of the corr
  • lines
  • ready
    Tells whether this stream is ready to be read. A buffered character stream is ready if the buffer is
  • reset
    Resets the stream to the most recent mark.
  • mark
    Marks the present position in the stream. Subsequent calls to reset() will attempt to reposition the
  • skip
    Skips characters.
  • checkNotClosed
  • chompNewline
    Peeks at the next input character, refilling the buffer if necessary. If this character is a newline
  • fillBuf
    Populates the buffer with data. It is an error to call this method when the buffer still contains da
  • chompNewline,
  • fillBuf,
  • isClosed,
  • maybeSwallowLF,
  • readChar,
  • fill,
  • ensureOpen,
  • read1

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now