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

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

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

origin: internetarchive/heritrix3

    + Thread.currentThread().getName());
try {
  rec.getRecordedInput().close();
} catch (IOException e) {
  logger.log(Level.SEVERE, "second-chance RIS close failed", e);
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

/**
 * Close all streams.
 */
public void close() {
  logger.fine(Thread.currentThread().getName() + " closing");
  try {
    this.ris.close();
  } catch (IOException e) {
    // TODO: Can we not let the exception out of here and report it
    // higher up in the caller?
    DevUtils.logger.log(Level.SEVERE, "close() ris" +
      DevUtils.extraInfo(), e);
  }
  try {
    this.ros.close();
  } catch (IOException e) {
    DevUtils.logger.log(Level.SEVERE, "close() ros" +
      DevUtils.extraInfo(), e);
  }
}
origin: org.netpreserve.commons/commons-web

/**
 * Close all streams.
 */
public void close() {
  logger.fine(Thread.currentThread().getName() + " closing");
  try {
    this.ris.close();
  } catch (IOException e) {
    // TODO: Can we not let the exception out of here and report it
    // higher up in the caller?
    DevUtils.logger.log(Level.SEVERE, "close() ris" +
      DevUtils.extraInfo(), e);
  }
  try {
    this.ros.close();
  } catch (IOException e) {
    DevUtils.logger.log(Level.SEVERE, "close() ros" +
      DevUtils.extraInfo(), e);
  }
}
origin: iipc/webarchive-commons

/**
 * Close all streams.
 */
public void close() {
  logger.fine(Thread.currentThread().getName() + " closing");
  try {
    this.ris.close();
  } catch (IOException e) {
    // TODO: Can we not let the exception out of here and report it
    // higher up in the caller?
    DevUtils.logger.log(Level.SEVERE, "close() ris" +
      DevUtils.extraInfo(), e);
  }
  try {
    this.ros.close();
  } catch (IOException e) {
    DevUtils.logger.log(Level.SEVERE, "close() ros" +
      DevUtils.extraInfo(), e);
  }
}
origin: org.archive.heritrix/heritrix-modules

    + Thread.currentThread().getName());
try {
  rec.getRecordedInput().close();
} catch (IOException e) {
  logger.log(Level.SEVERE, "second-chance RIS close failed", e);
org.archive.ioRecordingInputStreamclose

Popular methods of RecordingInputStream

  • getReplayInputStream
  • getSize
  • getMessageBodyReplayInputStream
  • getResponseContentLength
  • isOpen
  • <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 requests using okhttp
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Notification (javax.management)
  • Table (org.hibernate.mapping)
    A relational table
  • Top Sublime Text 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