org.smurn.jply
Enum DataType

java.lang.Object
  extended by java.lang.Enum<DataType>
      extended by org.smurn.jply.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>

public enum DataType
extends Enum<DataType>

Data type of values stored in PLY files.


Enum Constant Summary
CHAR
          One byte signed integer.
DOUBLE
          Eight byte byte floating point number.
FLOAT
          four byte floating point number.
INT
          Four byte signed integer.
SHORT
          Two byte signed integer.
UCHAR
          One byte unsigned integer.
UINT
          Four byte unsigned integer.
USHORT
          Two byte unsigned integer.
 
Method Summary
static DataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataType[] 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

CHAR

public static final DataType CHAR
One byte signed integer.


UCHAR

public static final DataType UCHAR
One byte unsigned integer.


SHORT

public static final DataType SHORT
Two byte signed integer.


USHORT

public static final DataType USHORT
Two byte unsigned integer.


INT

public static final DataType INT
Four byte signed integer.


UINT

public static final DataType UINT
Four byte unsigned integer.


FLOAT

public static final DataType FLOAT
four byte floating point number.


DOUBLE

public static final DataType DOUBLE
Eight byte byte floating point number.

Method Detail

values

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

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

valueOf

public static DataType 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 © 2011. All Rights Reserved.