org.at4j.zip.extattrs
Class MsDosExternalFileAttributesParser
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final MsDosExternalFileAttributesParser INSTANCE
- Singleton instance that may be used instead of instantiating this class.
MsDosExternalFileAttributesParser
public MsDosExternalFileAttributesParser()
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.