org.at4j.zip.extattrs
Class MsDosExternalFileAttributesParser

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

public class MsDosExternalFileAttributesParser
extends Object
implements ZipExternalFileAttributesParser

This parser is used to parse external file attributes of the type MsDosExternalFileAttributes.

Since:
1.0
Author:
Karl Gustafsson
See Also:
MsDosExternalFileAttributes

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

Constructor Detail

MsDosExternalFileAttributesParser

public MsDosExternalFileAttributesParser()
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 MsDosExternalFileAttributes 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.