/** * Mark the present position in the stream. * * @exception IOException If an I/O error occurs */ public void mark(int readAheadLimit) throws IOException { ensureOpen(); if (in.markSupported()) { in.mark(readAheadLimit); } else { throw new IOException( /* #ifdef VERBOSE_EXCEPTIONS */ /// skipped "mark() not supported" /* #endif */ ); } }
/** Tell whether this stream supports the mark() operation. */ public boolean markSupported() { if (in == null) { return false; } return in.markSupported(); }