Codota Logo
RecordingInputStream.getContentBegin
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: internetarchive/heritrix3

protected URI writeRevisit(final WARCWriter w,
    final String timestamp, final String mimetype,
    final URI baseid, final CrawlURI curi,
    final ANVLRecord headers)  
        throws IOException {
  long revisedLength = 0; // By default, truncate all data 
  
  if (curi.getRevisitProfile().getProfileName().equals(PROFILE_REVISIT_IDENTICAL_DIGEST) ) {
    // Save response from identical digest matches
    revisedLength = curi.getRecorder().getRecordedInput().getContentBegin();
    revisedLength = revisedLength > 0 
        ? revisedLength 
        : curi.getRecorder().getRecordedInput().getSize();
  }
  return writeRevisit(w, timestamp, mimetype, baseid, curi,
      headers, revisedLength);
}

origin: org.archive.heritrix/heritrix-modules

protected URI writeRevisit(final WARCWriter w,
    final String timestamp, final String mimetype,
    final URI baseid, final CrawlURI curi,
    final ANVLRecord headers)  
        throws IOException {
  long revisedLength = 0; // By default, truncate all data 
  
  if (curi.getRevisitProfile().getProfileName().equals(PROFILE_REVISIT_IDENTICAL_DIGEST) ) {
    // Save response from identical digest matches
    revisedLength = curi.getRecorder().getRecordedInput().getContentBegin();
    revisedLength = revisedLength > 0 
        ? revisedLength 
        : curi.getRecorder().getRecordedInput().getSize();
  }
  return writeRevisit(w, timestamp, mimetype, baseid, curi,
      headers, revisedLength);
}

org.archive.ioRecordingInputStreamgetContentBegin

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
  • open
  • markContentBegin,
  • open,
  • read,
  • chopAtMessageBodyBegin,
  • getDigestValue,
  • readFullyOrUntil,
  • readToEndOfContent,
  • setDigest,
  • setLimits

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • findViewById (Activity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now