Codota Logo
AbstractArchiveEntryFile.getArchiveFile
Code IndexAdd Codota to your IDE (free)

How to use
getArchiveFile
method
in
com.mucommander.commons.file.archive.AbstractArchiveEntryFile

Best Java code snippets using com.mucommander.commons.file.archive.AbstractArchiveEntryFile.getArchiveFile (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: mucommander/mucommander

/**
 * Convenience method that returns the parent {@link AbstractArchiveFile} that contains this file. If this file
 * is an {@link AbstractArchiveFile} or an ancestor of {@link AbstractArchiveFile}, <code>this</code> is returned.
 * If this file is neither contained by an archive nor is an archive, <code>null</code> is returned.
 *
 * <p>
 * <b>Important note:</b> the returned {@link AbstractArchiveFile}, if any, may not necessarily be an
 * archive, as specified by {@link #isArchive()}. This is the case for files that were resolved as
 * {@link AbstractArchiveFile} instances based on their path, but that do not yet exist or were created as
 * directories. On the contrary, an existing archive will necessarily return a non-null value.
 * </p>
 *
 * @return the parent {@link AbstractArchiveFile} that contains this file
 */
public final AbstractArchiveFile getParentArchive() {
  if(hasAncestor(AbstractArchiveFile.class))
    return getAncestor(AbstractArchiveFile.class);
  else if(hasAncestor(AbstractArchiveEntryFile.class))
    return getAncestor(AbstractArchiveEntryFile.class).getArchiveFile();
  return null;
}
com.mucommander.commons.file.archiveAbstractArchiveEntryFilegetArchiveFile

Javadoc

Returns the AbstractArchiveFile that contains the entry represented by this file.

Popular methods of AbstractArchiveEntryFile

  • changePermissions
  • getEntry
    Returns the ArchiveEntry instance that contains information about the archive entry (path, size, dat
  • getPermissions
  • getRelativeEntryPath
    Returns the relative path of this entry, with respect to the archive file. The path separator of the
  • getSeparator
    This method is overridden to return the separator of the #getArchiveFile() that contains this entry.
  • getUnderlyingFileObject
    Returns the same ArchiveEntry instance as #getEntry().
  • isBrowsable
  • setParent

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • addToBackStack (FragmentTransaction)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • JFileChooser (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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