Enum Class ZipURLConnectionFactory.Flavor

java.lang.Object
java.lang.Enum<ZipURLConnectionFactory.Flavor>
org.faceless.publisher.resource.ZipURLConnectionFactory.Flavor
All Implemented Interfaces:
Serializable, Comparable<ZipURLConnectionFactory.Flavor>, Constable
Enclosing class:
ZipURLConnectionFactory

public static enum ZipURLConnectionFactory.Flavor extends Enum<ZipURLConnectionFactory.Flavor>
Which variation of Zip file we're loading
  • Enum Constant Details

    • None

      public static final ZipURLConnectionFactory.Flavor None
      A plain Zip file with no special magic
    • Microsoft

      public static final ZipURLConnectionFactory.Flavor Microsoft
      A Microsoft Office flavoured zip-file using "Open Packaging Conventions" (OPC). Will contain a file called "[Content_Types].xml"
    • OpenDocument

      public static final ZipURLConnectionFactory.Flavor OpenDocument
      An OpenDocument flavoured zip-file for all OpenOffice-type documnets, and ePub. Will contain a file called "metadata"
  • Method Details

    • values

      public static ZipURLConnectionFactory.Flavor[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ZipURLConnectionFactory.Flavor valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null