maspack.fileutil.uri
Enum URIxScheme

java.lang.Object
  extended by java.lang.Enum<URIxScheme>
      extended by maspack.fileutil.uri.URIxScheme
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<URIxScheme>

public enum URIxScheme
extends java.lang.Enum<URIxScheme>


Enum Constant Summary
BZ2
           
FILE
           
FTP
           
GZ
           
HTTP
           
HTTPS
           
JAR
           
SFTP
           
TAR
           
TBZ2
           
TGZ
           
ZIP
           
 
Field Summary
static int OTHER_TYPE
           
static int ZIP_TYPE
           
 
Method Summary
static URIxScheme getScheme(java.lang.String str)
           
 boolean isZipType()
           
 java.lang.String toString()
           
static URIxScheme valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static URIxScheme[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GZ

public static final URIxScheme GZ

BZ2

public static final URIxScheme BZ2

ZIP

public static final URIxScheme ZIP

JAR

public static final URIxScheme JAR

TAR

public static final URIxScheme TAR

TGZ

public static final URIxScheme TGZ

TBZ2

public static final URIxScheme TBZ2

FILE

public static final URIxScheme FILE

HTTP

public static final URIxScheme HTTP

HTTPS

public static final URIxScheme HTTPS

FTP

public static final URIxScheme FTP

SFTP

public static final URIxScheme SFTP
Field Detail

ZIP_TYPE

public static int ZIP_TYPE

OTHER_TYPE

public static int OTHER_TYPE
Method Detail

values

public static URIxScheme[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (URIxScheme c : URIxScheme.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static URIxScheme valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isZipType

public boolean isZipType()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<URIxScheme>

getScheme

public static URIxScheme getScheme(java.lang.String str)