Tabnine Logo
RecordingInputStream.open
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.netpreserve.commons/webarchive-commons

/**
 * Wrap the provided stream with the internal RecordingInputStream
 *
 * open() throws an exception if RecordingInputStream is already open.
 *
 * @param is InputStream to wrap.
 *
 * @return The input stream wrapper which itself is an input stream.
 * Pass this in place of the passed stream so input can be recorded.
 *
 * @throws IOException
 */
public InputStream inputWrap(InputStream is) 
throws IOException {
  logger.fine(Thread.currentThread().getName() + " wrapping input");
  
  // discard any state from previously-recorded input
  this.characterEncoding = null;
  this.inputIsChunked = false;
  this.contentEncoding = null; 
  
  this.ris.open(is);
  return this.ris;
}
origin: org.netpreserve.commons/commons-web

/**
 * Wrap the provided stream with the internal RecordingInputStream
 *
 * open() throws an exception if RecordingInputStream is already open.
 *
 * @param is InputStream to wrap.
 *
 * @return The input stream wrapper which itself is an input stream.
 * Pass this in place of the passed stream so input can be recorded.
 *
 * @throws IOException
 */
public InputStream inputWrap(InputStream is) 
throws IOException {
  logger.fine(Thread.currentThread().getName() + " wrapping input");
  
  // discard any state from previously-recorded input
  this.characterEncoding = null;
  this.inputIsChunked = false;
  this.contentEncoding = null; 
  
  this.ris.open(is);
  return this.ris;
}
origin: iipc/webarchive-commons

/**
 * Wrap the provided stream with the internal RecordingInputStream
 *
 * open() throws an exception if RecordingInputStream is already open.
 *
 * @param is InputStream to wrap.
 *
 * @return The input stream wrapper which itself is an input stream.
 * Pass this in place of the passed stream so input can be recorded.
 *
 * @throws IOException
 */
public InputStream inputWrap(InputStream is) 
throws IOException {
  logger.fine(Thread.currentThread().getName() + " wrapping input");
  
  // discard any state from previously-recorded input
  this.characterEncoding = null;
  this.inputIsChunked = false;
  this.contentEncoding = null; 
  
  this.ris.open(is);
  return this.ris;
}
org.archive.ioRecordingInputStreamopen

Popular methods of RecordingInputStream

  • getReplayInputStream
  • getSize
  • close
  • 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
  • read
  • markContentBegin,
  • read,
  • chopAtMessageBodyBegin,
  • getContentBegin,
  • getDigestValue,
  • readFullyOrUntil,
  • readToEndOfContent,
  • setDigest,
  • setLimits

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Path (java.nio.file)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • JList (javax.swing)
  • Top plugins for Android Studio
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