Tabnine Logo
Archive.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
de.innosystec.unrar.Archive

Best Java code snippets using de.innosystec.unrar.Archive.close (Showing top 2 results out of 315)

origin: com.atlassian.addon.connect.hercules/hercules-ac

@Override
public void close() throws IOException
{
  rarArchive.close();
}
origin: com.github.axet/java-unrar

void setFile(NativeStorage file) throws IOException {
this.file = file;
totalPackedSize = 0L;
totalPackedRead = 0L;
close();
rof =file.read();
try {
  readHeaders();
} catch (Exception e) {
  logger.log(Level.WARNING,
    "exception in archive constructor maybe file is encrypted "
      + "or currupt", e);
  // ignore exceptions to allow exraction of working files in
  // corrupt archive
}
// Calculate size of packed data
for (BaseBlock block : headers) {
  if (block.getHeaderType() == UnrarHeadertype.FileHeader) {
  totalPackedSize += ((FileHeader) block).getFullPackSize();
  }
}
if (unrarCallback != null) {
  unrarCallback.volumeProgressChanged(totalPackedRead,
    totalPackedSize);
}
}
de.innosystec.unrarArchiveclose

Javadoc

Close the underlying compressed file.

Popular methods of Archive

  • <init>
  • extractFile
    Extract the file specified by the given header and write it to the supplied output stream
  • getFileHeaders
  • nextFileHeader
  • bytesReadRead
  • doExtractFile
  • getFile
  • getMainHeader
  • getRof
  • getUnrarCallback
  • isOldFormat
  • readHeaders
    Read the headers of the archive
  • isOldFormat,
  • readHeaders,
  • setFile

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JComboBox (javax.swing)
  • JFrame (javax.swing)
  • Top Vim 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