org.at4j.zip.extattrs
Interface ZipExternalFileAttributesParser

All Known Implementing Classes:
MsDosExternalFileAttributesParser, NtfsExternalFileAttributesParser, UnixExternalFileAttributesParser, UnparsedExternalFileAttributesParser

public interface ZipExternalFileAttributesParser

This interface defines a parser that is used for parsing external file attributes for a Zip entry from a Zip file.

Parsers for different external file attributes formats are stored in the ZipExternalFileAttributesParserRegistry.

Since:
1.0
Author:
Karl Gustafsson
See Also:
ZipExternalFileAttributes, ZipExternalFileAttributesParserRegistry

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.
 ZipExternalFileAttributes parse(ZipVersionMadeBy vmb, byte[] barr)
          Parse the external file attributes.
 

Method Detail

getVersionMadeBy

ZipVersionMadeBy getVersionMadeBy()
Get the Zip version that is used to make the kind of external file attributes that are parsed by this parser.

Returns:
The version.

parse

ZipExternalFileAttributes parse(ZipVersionMadeBy vmb,
                                byte[] barr)
                                throws ZipFileParseException
Parse the external file attributes.

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.
Throws:
ZipFileParseException - On parse errors.