org.at4j.zip.extattrs
Class UnparsedExternalFileAttributes

java.lang.Object
  extended by org.at4j.zip.extattrs.UnparsedExternalFileAttributes
All Implemented Interfaces:
ZipExternalFileAttributes

public class UnparsedExternalFileAttributes
extends Object
implements ZipExternalFileAttributes

This is a fallback ZipExternalFileAttributes object that is used for versions of the Zip software for which there are no version-specific ZipExternalFileAttributesFactory objects registered in the ZipEntryExtraFieldParserRegistry. This object contains the unparsed external file attributes value from the Zip entry header.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
UnparsedExternalFileAttributes(ZipVersionMadeBy vmb, byte[] barr)
           
 
Method Summary
 boolean equals(Object o)
           
 UnsignedInteger getEncodedValue()
          Get the value of the external file attributes encoded for storing in a Zip file.
 byte[] getUnparsedExternalFileAttributes()
          Get the unparsed external file attributes for the Zip entry.
 ZipVersionMadeBy getVersionMadeBy()
          Get the version of the Zip software used to create these external file attributes.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnparsedExternalFileAttributes

public UnparsedExternalFileAttributes(ZipVersionMadeBy vmb,
                                      byte[] barr)
Method Detail

getVersionMadeBy

public ZipVersionMadeBy getVersionMadeBy()
Description copied from interface: ZipExternalFileAttributes
Get the version of the Zip software used to create these external file attributes.

Specified by:
getVersionMadeBy in interface ZipExternalFileAttributes
Returns:
The version of the Zip software.

getUnparsedExternalFileAttributes

public byte[] getUnparsedExternalFileAttributes()
Get the unparsed external file attributes for the Zip entry.

Returns:
The unparsed external file attributes for the Zip entry. The returned array is a copy of the array used internally in this object.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getEncodedValue

public UnsignedInteger getEncodedValue()
Description copied from interface: ZipExternalFileAttributes
Get the value of the external file attributes encoded for storing in a Zip file.

Specified by:
getEncodedValue in interface ZipExternalFileAttributes
Returns:
The value of the external file attributes encoded for storing in a Zip file.