com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class ZipFileInfo

  • All Implemented Interfaces:
    IMetadataProperty


    public final class ZipFileInfo
    extends Object
    implements IMetadataProperty

    Represents file info in ZIP format.


    Contains detailed info about each entry inside ZIP archive like name, compression method, compressed and uncompressed sizes.

    • Method Detail

      • getCompressionMethod

        public final int getCompressionMethod()

        Gets the compression method.

        Returns:
        The compression method.
      • getCompressedSize

        public final long getCompressedSize()

        Gets the compressed size in bytes.

        Returns:
        The compressed size in bytes.
      • getUncompressedSize

        public final long getUncompressedSize()

        Gets the uncompressed size in bytes.

        Returns:
        The uncompressed size in bytes.
      • getFlags

        public final int getFlags()

        Gets the flags.

        Returns:
        The flags.


        Bit 00: encrypted file. <br></br> Bit 01: compression option. <br></br> Bit 02: compression option. <br></br> Bit 03: data descriptor. <br></br> Bit 04: enhanced deflation. <br></br> Bit 05: compressed patched data. <br></br> Bit 06: strong encryption. <br></br> Bit 07-10: unused. <br></br> Bit 11: language encoding. <br></br> Bit 12: reserved. <br></br> Bit 13: mask header values. <br></br> Bit 14-15: reserved. <br></br>

      • getName

        public final String getName()

        Gets file name.

        Specified by:
        getName in interface IMetadataProperty
        Returns:
        The entry name. It may be file or directory.
      • setName

        public final void setName(String value)

        Sets file name.

        Specified by:
        setName in interface IMetadataProperty
        Parameters:
        value - The entry name. It may be file or directory.
      • getFormattedValue

        public final String getFormattedValue()

        Gets the formatted value.

        Specified by:
        getFormattedValue in interface IMetadataProperty
        Returns:
        String value contained metadata property value in readable format.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A System.String that represents this instance.