Tabnine Logo
Archive.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
de.innosystec.unrar.Archive
constructor

Best Java code snippets using de.innosystec.unrar.Archive.<init> (Showing top 4 results out of 315)

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

public RarStream(final File file, final Executor executor) throws Exception
{
  rarArchive = new Archive(file);
  this.executor = executor;
}
origin: StannyBing/ZXUtils

  return;
Archive rarFile = new Archive(new NativeStorage(new File(rarFilePath)));
de.innosystec.unrar.rarfile.FileHeader fileHeader = null;
final int total = rarFile.getFileHeaders().size();
origin: com.github.axet/java-unrar

Archive a=null;
try {
  a = new Archive(new NativeStorage(f));
} catch (RarException e) {
origin: com.github.axet/java-unrar

public void parse(
    InputStream stream, ContentHandler handler,
    Metadata metadata, ParseContext context)
    throws SAXException, IOException, TikaException {
  EmbeddedDocumentExtractor extractor =
    new EmbeddedDocumentExtractor(context);
  try {
    File file = TikaInputStream.get(stream).getFile();
    Archive archive = new Archive(new NativeStorage(file));
    metadata.set(Metadata.CONTENT_TYPE, TYPE.toString());
    XHTMLContentHandler xhtml =
      new XHTMLContentHandler(handler, metadata);
    xhtml.startDocument();
    for (FileHeader header : archive.getFileHeaders()) {
      Metadata entrydata = new Metadata();
      entrydata.set(
          Metadata.RESOURCE_NAME_KEY,
          header.getFileNameString());
      if (extractor.shouldParseEmbedded(entrydata)) {
        extractor.parseEmbedded(stream, xhtml, entrydata, true);
      }
    }
    xhtml.endDocument();
  } catch (RarException e) {
    throw new TikaException("Unable to parse a RAR archive", e);
  }
}
de.innosystec.unrarArchive<init>

Javadoc

create a new archive object using the given file

Popular methods of Archive

  • extractFile
    Extract the file specified by the given header and write it to the supplied output stream
  • close
    Close the underlying compressed file.
  • 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
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JComboBox (javax.swing)
  • From CI to AI: The AI layer in your organization
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