protected void checkStream(final InputStream stream) throws IllegalArgumentException {
  if (this.hasFailingReaders && !stream.markSupported()) {
    throw new IllegalArgumentException("Stream has to support mark/reset.");
  }
}

protected void checkStream ( final InputStream stream ) throws IllegalArgumentException { if ( this . hasFailingReaders && ! stream . markSupported ( ) ) { throw new IllegalArgumentException ( "Stream has to support mark/reset." ) ; } }
checks for the constraints of this class .
