TrueZIP Kernel 7.0-rc1

de.schlichtherle.truezip.entry
Enum Entry.Type

java.lang.Object
  extended by java.lang.Enum<Entry.Type>
      extended by de.schlichtherle.truezip.entry.Entry.Type
All Implemented Interfaces:
Serializable, Comparable<Entry.Type>
Enclosing interface:
Entry

public static enum Entry.Type
extends Enum<Entry.Type>

Defines the type of archive entry.


Enum Constant Summary
DIRECTORY
          Regular directory.
FILE
          Regular file.
SPECIAL
          Special file.
SYMLINK
          Symbolic (named) link.
 
Method Summary
static Entry.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Entry.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FILE

public static final Entry.Type FILE
Regular file. A file usually has some content associated to it which can be read and written using a stream.


DIRECTORY

public static final Entry.Type DIRECTORY
Regular directory. A directory can have other archive entries as children.


SYMLINK

public static final Entry.Type SYMLINK
Symbolic (named) link. A symbolic link refers to another file system node which could even be located outside the current archive file.


SPECIAL

public static final Entry.Type SPECIAL
Special file. A special file is a byte or block oriented interface to an arbitrary I/O device, e.g. a hard disk or a network service.

Method Detail

values

public static Entry.Type[] 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 (Entry.Type c : Entry.Type.values())
    System.out.println(c);

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

valueOf

public static Entry.Type valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

TrueZIP Kernel 7.0-rc1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.