org.apache.commons.compress.archivers.sevenz

Class SevenZArchiveEntry

    • Method Detail

      • setName

        public void setName(String name)
        Set this entry's name.
        Parameters:
        name - This entry's new name.
      • hasStream

        public boolean hasStream()
        Whether there is any content associated with this entry.
        Returns:
        whether there is any content associated with this entry.
      • setHasStream

        public void setHasStream(boolean hasStream)
        Sets whether there is any content associated with this entry.
        Parameters:
        hasStream - whether there is any content associated with this entry.
      • isDirectory

        public boolean isDirectory()
        Return whether or not this entry represents a directory.
        Specified by:
        isDirectory in interface ArchiveEntry
        Returns:
        True if this entry is a directory.
      • setDirectory

        public void setDirectory(boolean isDirectory)
        Sets whether or not this entry represents a directory.
        Parameters:
        isDirectory - True if this entry is a directory.
      • isAntiItem

        public boolean isAntiItem()
        Indicates whether this is an "anti-item" used in differential backups, meaning it should delete the same file from a previous backup.
        Returns:
        true if it is an anti-item, false otherwise
      • setAntiItem

        public void setAntiItem(boolean isAntiItem)
        Sets whether this is an "anti-item" used in differential backups, meaning it should delete the same file from a previous backup.
        Parameters:
        isAntiItem - true if it is an anti-item, false otherwise
      • getHasCreationDate

        public boolean getHasCreationDate()
        Returns whether this entry has got a creation date at all.
        Returns:
        whether the entry has got a creation date
      • setHasCreationDate

        public void setHasCreationDate(boolean hasCreationDate)
        Sets whether this entry has got a creation date at all.
        Parameters:
        hasCreationDate - whether the entry has got a creation date
      • setCreationDate

        public void setCreationDate(long ntfsCreationDate)
        Sets the creation date using NTFS time (100 nanosecond units since 1 January 1601)
        Parameters:
        ntfsCreationDate - the creation date
      • setCreationDate

        public void setCreationDate(Date creationDate)
        Sets the creation date,
        Parameters:
        creationDate - the creation date
      • getHasLastModifiedDate

        public boolean getHasLastModifiedDate()
        Returns whether this entry has got a last modified date at all.
        Returns:
        whether this entry has got a last modified date at all
      • setHasLastModifiedDate

        public void setHasLastModifiedDate(boolean hasLastModifiedDate)
        Sets whether this entry has got a last modified date at all.
        Parameters:
        hasLastModifiedDate - whether this entry has got a last modified date at all
      • setLastModifiedDate

        public void setLastModifiedDate(long ntfsLastModifiedDate)
        Sets the last modified date using NTFS time (100 nanosecond units since 1 January 1601)
        Parameters:
        ntfsLastModifiedDate - the last modified date
      • setLastModifiedDate

        public void setLastModifiedDate(Date lastModifiedDate)
        Sets the last modified date,
        Parameters:
        lastModifiedDate - the last modified date
      • getHasAccessDate

        public boolean getHasAccessDate()
        Returns whether this entry has got an access date at all.
        Returns:
        whether this entry has got an access date at all.
      • setHasAccessDate

        public void setHasAccessDate(boolean hasAcessDate)
        Sets whether this entry has got an access date at all.
        Parameters:
        hasAcessDate - whether this entry has got an access date at all.
      • setAccessDate

        public void setAccessDate(long ntfsAccessDate)
        Sets the access date using NTFS time (100 nanosecond units since 1 January 1601)
        Parameters:
        ntfsAccessDate - the access date
      • setAccessDate

        public void setAccessDate(Date accessDate)
        Sets the access date,
        Parameters:
        accessDate - the access date
      • getHasWindowsAttributes

        public boolean getHasWindowsAttributes()
        Returns whether this entry has windows attributes.
        Returns:
        whether this entry has windows attributes.
      • setHasWindowsAttributes

        public void setHasWindowsAttributes(boolean hasWindowsAttributes)
        Sets whether this entry has windows attributes.
        Parameters:
        hasWindowsAttributes - whether this entry has windows attributes.
      • getWindowsAttributes

        public int getWindowsAttributes()
        Gets the windows attributes.
        Returns:
        the windows attributes
      • setWindowsAttributes

        public void setWindowsAttributes(int windowsAttributes)
        Sets the windows attributes.
        Parameters:
        windowsAttributes - the windows attributes
      • getHasCrc

        public boolean getHasCrc()
        Returns whether this entry has got a crc.

        In general entries without streams don't have a CRC either.

        Returns:
        whether this entry has got a crc.
      • setHasCrc

        public void setHasCrc(boolean hasCrc)
        Sets whether this entry has got a crc.
        Parameters:
        hasCrc - whether this entry has got a crc.
      • getCrc

        @Deprecatedpublic int getCrc()
        Deprecated. use getCrcValue instead.
        Gets the CRC.
        Returns:
        the CRC
      • setCrc

        @Deprecatedpublic void setCrc(int crc)
        Deprecated. use setCrcValue instead.
        Sets the CRC.
        Parameters:
        crc - the CRC
      • getCrcValue

        public long getCrcValue()
        Gets the CRC.
        Returns:
        the CRC
        Since:
        Compress 1.7
      • setCrcValue

        public void setCrcValue(long crc)
        Sets the CRC.
        Parameters:
        crc - the CRC
        Since:
        Compress 1.7
      • getSize

        public long getSize()
        Get this entry's file size.
        Specified by:
        getSize in interface ArchiveEntry
        Returns:
        This entry's file size.
      • setSize

        public void setSize(long size)
        Set this entry's file size.
        Parameters:
        size - This entry's new file size.
      • ntfsTimeToJavaTime

        public static Date ntfsTimeToJavaTime(long ntfsTime)
        Converts NTFS time (100 nanosecond units since 1 January 1601) to Java time.
        Parameters:
        ntfsTime - the NTFS time in 100 nanosecond units
        Returns:
        the Java time
      • javaTimeToNtfsTime

        public static long javaTimeToNtfsTime(Date date)
        Converts Java time to NTFS time.
        Parameters:
        date - the Java time
        Returns:
        the NTFS time

Copyright © 2016 The Apache Software Foundation. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14