org.at4j.zip.extattrs
Class NtfsExternalFileAttributesParser

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

public class NtfsExternalFileAttributesParser
extends Object
implements ZipExternalFileAttributesParser

This parser parses attributes of the type NtfsExternalFileAttributes.

Since:
1.0
Author:
Karl Gustafsson

Field Summary
static NtfsExternalFileAttributesParser INSTANCE
          Singleton instance that may be used instead of instantiating this class.
 
Constructor Summary
NtfsExternalFileAttributesParser()
           
 
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.
 NtfsExternalFileAttributes 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 NtfsExternalFileAttributesParser INSTANCE
Singleton instance that may be used instead of instantiating this class.

Constructor Detail

NtfsExternalFileAttributesParser

public NtfsExternalFileAttributesParser()
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 NtfsExternalFileAttributes 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.