congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RecordingInputStream.isOpen
Code IndexAdd Tabnine to your IDE (free)

How to use
isOpen
method
in
org.archive.io.RecordingInputStream

Best Java code snippets using org.archive.io.RecordingInputStream.isOpen (Showing top 19 results out of 315)

origin: internetarchive/heritrix3

if (rec.getRecordedInput().isOpen()) {
  logger.severe(curi.toString() + " RIS still open. Should have"
      + " been closed by method release: "
origin: org.netpreserve.commons/commons-web

public int read() throws IOException {
  if (!isOpen()) {
    throw new IOException("Stream closed " +
      Thread.currentThread().getName());
  }
  int b = this.in.read();
  if (b != -1) {
    assert this.recordingOutputStream != null: "ROS is null " +
      Thread.currentThread().getName();
    this.recordingOutputStream.write(b);
  }
  return b;
}
origin: org.netpreserve.commons/commons-web

public int read(byte[] b, int off, int len) throws IOException {
  if (!isOpen()) {
    throw new IOException("Stream closed " +
      Thread.currentThread().getName());
  }
  int count = this.in.read(b,off,len);
  if (count > 0) {
    assert this.recordingOutputStream != null: "ROS is null " +
      Thread.currentThread().getName();
    this.recordingOutputStream.write(b,off,count);
  }
  return count;
}
origin: org.netpreserve.commons/commons-web

public int read(byte[] b) throws IOException {
    if (!isOpen()) {
        throw new IOException("Stream closed " +
        Thread.currentThread().getName());
    }
    int count = this.in.read(b);
  if (count > 0) {
    assert this.recordingOutputStream != null: "ROS is null " +
      Thread.currentThread().getName();
    this.recordingOutputStream.write(b,0,count);
  }
  return count;
}
origin: iipc/webarchive-commons

public int read() throws IOException {
  if (!isOpen()) {
    throw new IOException("Stream closed " +
      Thread.currentThread().getName());
  }
  int b = this.in.read();
  if (b != -1) {
    assert this.recordingOutputStream != null: "ROS is null " +
      Thread.currentThread().getName();
    this.recordingOutputStream.write(b);
  }
  return b;
}
origin: org.netpreserve.commons/webarchive-commons

public int read(byte[] b) throws IOException {
    if (!isOpen()) {
        throw new IOException("Stream closed " +
        Thread.currentThread().getName());
    }
    int count = this.in.read(b);
  if (count > 0) {
    assert this.recordingOutputStream != null: "ROS is null " +
      Thread.currentThread().getName();
    this.recordingOutputStream.write(b,0,count);
  }
  return count;
}
origin: org.netpreserve.commons/webarchive-commons

public int read() throws IOException {
  if (!isOpen()) {
    throw new IOException("Stream closed " +
      Thread.currentThread().getName());
  }
  int b = this.in.read();
  if (b != -1) {
    assert this.recordingOutputStream != null: "ROS is null " +
      Thread.currentThread().getName();
    this.recordingOutputStream.write(b);
  }
  return b;
}
origin: org.netpreserve.commons/webarchive-commons

public int read(byte[] b, int off, int len) throws IOException {
  if (!isOpen()) {
    throw new IOException("Stream closed " +
      Thread.currentThread().getName());
  }
  int count = this.in.read(b,off,len);
  if (count > 0) {
    assert this.recordingOutputStream != null: "ROS is null " +
      Thread.currentThread().getName();
    this.recordingOutputStream.write(b,off,count);
  }
  return count;
}
origin: iipc/webarchive-commons

public int read(byte[] b, int off, int len) throws IOException {
  if (!isOpen()) {
    throw new IOException("Stream closed " +
      Thread.currentThread().getName());
  }
  int count = this.in.read(b,off,len);
  if (count > 0) {
    assert this.recordingOutputStream != null: "ROS is null " +
      Thread.currentThread().getName();
    this.recordingOutputStream.write(b,off,count);
  }
  return count;
}
origin: iipc/webarchive-commons

public int read(byte[] b) throws IOException {
    if (!isOpen()) {
        throw new IOException("Stream closed " +
        Thread.currentThread().getName());
    }
    int count = this.in.read(b);
  if (count > 0) {
    assert this.recordingOutputStream != null: "ROS is null " +
      Thread.currentThread().getName();
    this.recordingOutputStream.write(b,0,count);
  }
  return count;
}
origin: org.netpreserve.commons/commons-web

public void open(InputStream wrappedStream) throws IOException {
  logger.fine(Thread.currentThread().getName() + " opening " +
    wrappedStream + ", " + Thread.currentThread().getName());
  if(isOpen()) {
    // error; should not be opening/wrapping in an unclosed 
    // stream remains open
    throw new IOException("RIS already open for "
        +Thread.currentThread().getName());
  }
  try {
    this.in = wrappedStream;
    this.recordingOutputStream.open();
  } catch (IOException ioe) {
    close(); // ...and rethrow...
    throw ioe;
  }
}
origin: org.netpreserve.commons/webarchive-commons

public void open(InputStream wrappedStream) throws IOException {
  if (logger.isLoggable(Level.FINE)) {
    logger.fine("wrapping " + wrappedStream + " in thread "
        + Thread.currentThread().getName());
  }
  if(isOpen()) {
    // error; should not be opening/wrapping in an unclosed 
    // stream remains open
    throw new IOException("RIS already open for "
        +Thread.currentThread().getName());
  }
  try {
    this.in = wrappedStream;
    this.recordingOutputStream.open();
  } catch (IOException ioe) {
    close(); // ...and rethrow...
    throw ioe;
  }
}
origin: iipc/webarchive-commons

public void open(InputStream wrappedStream) throws IOException {
  if (logger.isLoggable(Level.FINE)) {
    logger.fine("wrapping " + wrappedStream + " in thread "
        + Thread.currentThread().getName());
  }
  if(isOpen()) {
    // error; should not be opening/wrapping in an unclosed 
    // stream remains open
    throw new IOException("RIS already open for "
        +Thread.currentThread().getName());
  }
  try {
    this.in = wrappedStream;
    this.recordingOutputStream.open();
  } catch (IOException ioe) {
    close(); // ...and rethrow...
    throw ioe;
  }
}
origin: org.netpreserve.commons/webarchive-commons

  RecorderTimeoutException, InterruptedException {
if (!isOpen()) {
origin: org.netpreserve.commons/commons-web

  RecorderTimeoutException, InterruptedException {
if (!isOpen()) {
origin: iipc/webarchive-commons

public void readToEndOfContent(long contentLength)
    throws IOException, InterruptedException {
  if (!isOpen()) {
origin: iipc/webarchive-commons

  RecorderTimeoutException, InterruptedException {
if (!isOpen()) {
origin: org.netpreserve.commons/webarchive-commons

public void readToEndOfContent(long contentLength)
    throws IOException, InterruptedException {
  if (!isOpen()) {
origin: org.archive.heritrix/heritrix-modules

if (rec.getRecordedInput().isOpen()) {
  logger.severe(curi.toString() + " RIS still open. Should have"
      + " been closed by method release: "
org.archive.ioRecordingInputStreamisOpen

Popular methods of RecordingInputStream

  • getReplayInputStream
  • getSize
  • close
  • getMessageBodyReplayInputStream
  • getResponseContentLength
  • <init>
    Create a new RecordingInputStream.
  • clearForReuse
  • closeRecorder
  • getRecordedBufferLength
    Expose the amount of in-memory buffering used by the internal recording stream.
  • markContentBegin
  • open
  • read
  • open,
  • read,
  • chopAtMessageBodyBegin,
  • getContentBegin,
  • getDigestValue,
  • readFullyOrUntil,
  • readToEndOfContent,
  • setDigest,
  • setLimits

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Permission (java.security)
    Legacy security code; do not use.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Join (org.hibernate.mapping)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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