Codota Logo
com.intel.gkl.compression
Code IndexAdd Codota to your IDE (free)

How to use com.intel.gkl.compression

Best Java code snippets using com.intel.gkl.compression (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: com.intel.gkl/gkl

@Override
public void reset() {
  resetNative(nowrap);
  inputBuffer = null;
  inputBufferLength = 0;
  finished = false;
}
origin: com.intel.gkl/gkl

/**
 * Returns true if the end of the compressed data output stream has
 * been reached.
 * @return true if the end of the compressed data output stream has
 * been reached
 */
@Override
public int inflate (byte[] b ) {
  return inflateNative( b, 0, b.length);
}
origin: com.intel.gkl/gkl

@Override
public void reset() {
  resetNative(nowrap);
  inputBuffer = null;
  inputBufferLength = 0;
  endOfStream = false;
  finished = false;
}
origin: broadgsa/gatk

public void initializeCompressionAndDecompression() {
  // Use the Intel Inflater/Deflater for accelerated BAM reading/writing, if possible:
  if (! getArguments().useJdkDeflater) {
    BlockCompressedOutputStream.setDefaultDeflaterFactory(new IntelDeflaterFactory());
  }
  if (! getArguments().useJdkInflater) {
    BlockGunzipper.setDefaultInflaterFactory(new IntelInflaterFactory());
  }
  final boolean usingIntelDeflater = (BlockCompressedOutputStream.getDefaultDeflaterFactory() instanceof IntelDeflaterFactory && ((IntelDeflaterFactory)BlockCompressedOutputStream.getDefaultDeflaterFactory()).usingIntelDeflater());
  logger.info("Deflater: " + (usingIntelDeflater ? "IntelDeflater": "JdkDeflater"));
  final boolean usingIntelInflater = (BlockGunzipper.getDefaultInflaterFactory() instanceof IntelInflaterFactory && ((IntelInflaterFactory)BlockGunzipper.getDefaultInflaterFactory()).usingIntelInflater());
  logger.info("Inflater: " + (usingIntelInflater ? "IntelInflater": "JdkInflater"));
}
origin: com.intel.gkl/gkl

public IntelDeflaterFactory(File tmpDir) {
  intelDeflaterSupported = new IntelDeflater().load(tmpDir);
}
origin: HadoopGenomics/Hadoop-BAM

 static DeflaterFactory newDeflaterFactory() {
  return new IntelDeflaterFactory();
 }
}
origin: org.seqdoop/hadoop-bam

static InflaterFactory newInflatorFactor() {
 return new IntelInflaterFactory();
}
static DeflaterFactory newDeflaterFactory() {
origin: com.intel.gkl/gkl

public IntelInflaterFactory(File tmpDir) {
  intelInflaterSupported = new IntelInflater().load(tmpDir);
}
origin: com.intel/intel-gkl

public boolean load() {
  return load(null);
}
origin: com.intel/intel-gkl

/**
 * Closes the compressor and discards any unprocessed input.
 * This method should be called when the compressor is no longer
 * being used, but will also be called automatically by the
 * finalize() method. Once this method is called, the behavior
 * of the IntelDeflater object is undefined.
 */
@Override
public void end() {
  endNative();
}
origin: com.intel/intel-gkl

/**
 * Compresses the input data and fills specified buffer with compressed
 * data. Returns actual number of bytes of compressed data. A return value
 * of 0 indicates that {@link #needsInput() needsInput} should be called
 * in order to determine if more input data is required.
 *
 * @param b the buffer for the compressed data
 * @param off the start offset of the data
 * @param len the maximum number of bytes of compressed data
 * @return the actual number of bytes of compressed data written to the
 *         output buffer
 */
public int deflate(byte[] b, int off, int len ) {
  return deflateNative(b, len);
}
origin: com.intel/intel-gkl

public boolean load(File tmpDir) {
  isSupported = IntelGKLUtils.load(tmpDir);
  if (isSupported) {
    initNative();
  }
  return isSupported;
}
origin: com.intel/intel-gkl

  /**
   * Closes the compressor when garbage is collected.
   */
  protected void finalize() {
    end();
  }
}
origin: com.intel.gkl/gkl

  /**
   * Closes the compressor and discards any unprocessed input.
   * This method should be called when the compressor is no longer
   * being used, but will also be called automatically by the
   * finalize() method. Once this method is called, the behavior
   * of the IntelDeflater object is undefined.
   */
  @Override
  public void end() {
    if(lz_stream != 0) {
      endNative();
      lz_stream = 0;
    }
  }
}
origin: org.seqdoop/hadoop-bam

 static DeflaterFactory newDeflaterFactory() {
  return new IntelDeflaterFactory();
 }
}
origin: HadoopGenomics/Hadoop-BAM

static InflaterFactory newInflatorFactor() {
 return new IntelInflaterFactory();
}
static DeflaterFactory newDeflaterFactory() {
origin: com.intel/intel-gkl

public void reset() {
  logger.debug("Reset deflater");
  resetNative(nowrap);
  inputBuffer = null;
  inputBufferLength = 0;
  endOfStream = false;
  finished = false;
}
origin: com.intel.gkl/gkl

  /**
   * Closes the compressor and discards any unprocessed input.
   * This method should be called when the compressor is no longer
   * being used, but will also be called automatically by the
   * finalize() method. Once this method is called, the behavior
   * of the IntelDeflater object is undefined.
   */
  @Override
  public void end() {
    if(lz_stream != 0) {
      endNative();
      lz_stream = 0;
    }
  }
}
origin: com.intel.gkl/gkl

/**
 * Compresses the input data and fills specified buffer with compressed
 * data. Returns actual number of bytes of compressed data. A return value
 * of 0 indicates that {@link #needsInput() needsInput} should be called
 * in order to determine if more input data is required.
 *
 * @param b the buffer for the compressed data
 * @param off the start offset of the data
 * @param len the maximum number of bytes of compressed data
 * @return the actual number of bytes of compressed data written to the
 *         output buffer
 */
@Override
public int deflate(byte[] b, int off, int len ) {
  return deflateNative(b, len);
}
origin: com.intel.gkl/gkl

/**
 * Compresses the input data and fills specified buffer with compressed
 * data. Returns actual number of bytes of compressed data. A return value
 * of 0 indicates that {@link #needsInput() needsInput} should be called
 * in order to determine if more input data is required.
 *
 * @param b the buffer for the compressed data
 * @param off the start offset of the data
 * @param len the maximum number of bytes of compressed data
 * @return the actual number of bytes of compressed data written to the
 *         output buffer
 */
@Override
public int inflate (byte[] b, int off, int len ) {
  return inflateNative(b, off, len);
}
com.intel.gkl.compression

Most used classes

  • IntelDeflaterFactory
    Provides an IntelDeflater object using the DeflaterFactory API defined in HTSJDK
  • IntelInflaterFactory
  • IntelDeflater
  • IntelInflater
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