congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SnappyInputStream.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
org.xerial.snappy.SnappyInputStream

Best Java code snippets using org.xerial.snappy.SnappyInputStream.close (Showing top 5 results out of 315)

origin: pentaho/pentaho-kettle

@Override
public void close() throws IOException {
 ( (SnappyInputStream) delegate ).close();
}
origin: apache/flume

snappyIn.close();
origin: eu.fbk.twm/twm-index

public Decompress(File in, File out) {
  long begin = System.currentTimeMillis();
  logger.info("decompressing" + new Date() + "...");
  logger.info("in:\t" + in + " (" + df.format(in.length()) + ")");
  logger.info("out:\t" + out);
  byte[] buffer = new byte[1024];
  try {
    SnappyInputStream sis = new SnappyInputStream(new FileInputStream(in));
    FileOutputStream fos = new FileOutputStream(out);
    int len;
    while ((len = sis.read(buffer)) > 0) {
      fos.write(buffer, 0, len);
    }
    sis.close();
    fos.close();
  } catch (IOException e) {
    logger.error(e);
  }
  long end = System.currentTimeMillis();
  logger.info("decompression done in " + df.format(end - begin) + " ms (" + new Date() + ")");
}
origin: com.netflix.astyanax/astyanax-cassandra

snappy.close();
baos.close();
return StringUtils.newStringUtf8(baos.toByteArray());
if (snappy != null) {
  try {
    snappy.close();
  } catch (IOException e) {
origin: org.apache.flume.flume-ng-channels/flume-file-channel

snappyIn.close();
org.xerial.snappySnappyInputStreamclose

Javadoc

Close the stream

Popular methods of SnappyInputStream

  • <init>
  • read
  • hasNextChunk
  • isValidHeader
  • rawRead
    Read uncompressed data into the specified array
  • readFully
  • readHeader
  • readNext
    Read next len bytes

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Option (scala)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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