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

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: StannyBing/ZXUtils

final int total = rarFile.getFileHeaders().size();
int progressNow = -1;
for (int i = 0; i < rarFile.getFileHeaders().size(); i++) {
  fileHeader = rarFile.getFileHeaders().get(i);
  String entrypath = "";
  if (fileHeader.isUnicode()) {//解决中文乱码
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.unrarArchivegetFileHeaders

Popular methods of Archive

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • findViewById (Activity)
  • getSystemService (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • JCheckBox (javax.swing)
  • 14 Best Plugins for Eclipse
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