org.at4j.zip.extattrs
Class UnixExternalFileAttributesParser

java.lang.Object
  extended by org.at4j.zip.extattrs.UnixExternalFileAttributesParser
All Implemented Interfaces:
ZipExternalFileAttributesParser

public class UnixExternalFileAttributesParser
extends Object
implements ZipExternalFileAttributesParser

This is a parser for UnixExternalFileAttributes.

Since:
1.0
Author:
Karl Gustafsson
See Also:
UnixExternalFileAttributes

Field Summary
static UnixExternalFileAttributesParser INSTANCE
          Singleton instance that may be used instead of instantiating this class.
 
Constructor Summary
UnixExternalFileAttributesParser()
           
 
Method Summary
 ZipVersionMadeBy getVersionMadeBy()
          Get the Zip version that is used to make the kind of external file attributes that are parsed by this parser.
 UnixExternalFileAttributes parse(ZipVersionMadeBy vmb, byte[] barr)
          Parse the external file attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final UnixExternalFileAttributesParser INSTANCE
Singleton instance that may be used instead of instantiating this class.

Constructor Detail

UnixExternalFileAttributesParser

public UnixExternalFileAttributesParser()
Method Detail

getVersionMadeBy

public ZipVersionMadeBy getVersionMadeBy()
Description copied from interface: ZipExternalFileAttributesParser
Get the Zip version that is used to make the kind of external file attributes that are parsed by this parser.

Specified by:
getVersionMadeBy in interface ZipExternalFileAttributesParser
Returns:
The version.

parse

public UnixExternalFileAttributes parse(ZipVersionMadeBy vmb,
                                        byte[] barr)
Description copied from interface: ZipExternalFileAttributesParser
Parse the external file attributes.

Specified by:
parse in interface ZipExternalFileAttributesParser
Parameters:
vmb - The version of the Zip software used to create the Zip entry.
barr - The unparsed value of the external file attributes record in the Zip entry.
Returns:
The entry's external file attributes.