Esempio n. 1
1
 /**
  * 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 */
         );
   }
 }
Esempio n. 2
1
 /** Tell whether this stream supports the mark() operation. */
 public boolean markSupported() {
   if (in == null) {
     return false;
   }
   return in.markSupported();
 }