de.waldheinz.fs.fat
Enum FatType

java.lang.Object
  extended by java.lang.Enum<FatType>
      extended by de.waldheinz.fs.fat.FatType
All Implemented Interfaces:
Serializable, Comparable<FatType>

public enum FatType
extends Enum<FatType>

Enumerates the different entry sizes of 12, 16 and 32 bits for the different FAT flavours.

Author:
Ewout Prangsma <epr at jnode.org>, Matthias Treydte <waldheinz at gmail.com>

Enum Constant Summary
FAT12
          Represents a 12-bit file allocation table.
FAT16
          Represents a 16-bit file allocation table.
FAT32
          Represents a 32-bit file allocation table.
 
Method Summary
static FatType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FatType[] 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

FAT12

public static final FatType FAT12
Represents a 12-bit file allocation table.


FAT16

public static final FatType FAT16
Represents a 16-bit file allocation table.


FAT32

public static final FatType FAT32
Represents a 32-bit file allocation table.

Method Detail

values

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

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

valueOf

public static FatType 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


Copyright © 2014. All rights reserved.