org.at4j.zip.extattrs
Class ZipExternalFileAttributesParserRegistry

java.lang.Object
  extended by org.at4j.zip.extattrs.ZipExternalFileAttributesParserRegistry

public class ZipExternalFileAttributesParserRegistry
extends Object

This is a registry where parsers for the different ZipExternalFileAttributes that may occur in a Zip file are registered. A parser is identified by the version of the Zip software that was used to create the Zip file (the ZipVersionMadeBy).

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
ZipExternalFileAttributesParserRegistry()
          Create a new registry.
 
Method Summary
 ZipExternalFileAttributesParser forVersionMadeBy(ZipVersionMadeBy vmb)
          Get the parser for the specific Zip software version.
 void registerExternalFileAttributesParser(ZipExternalFileAttributesParser p)
          Register a new external file attributes parser object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipExternalFileAttributesParserRegistry

public ZipExternalFileAttributesParserRegistry()
Create a new registry.

The new registry contains all file attribute compatibility classes defined in this package.

Method Detail

registerExternalFileAttributesParser

public void registerExternalFileAttributesParser(ZipExternalFileAttributesParser p)
Register a new external file attributes parser object.

Parameters:
p - The parser to register.

forVersionMadeBy

public ZipExternalFileAttributesParser forVersionMadeBy(ZipVersionMadeBy vmb)
Get the parser for the specific Zip software version.

Parameters:
vmb - The Zip software version.
Returns:
The parser for the Zip software version, or an UnixExternalFileAttributesParser if the software version is not known.