org.apache.commons.flatfile
Enum PadJustifyFieldSupport.Justify

java.lang.Object
  extended by java.lang.Enum<PadJustifyFieldSupport.Justify>
      extended by org.apache.commons.flatfile.PadJustifyFieldSupport.Justify
All Implemented Interfaces:
Serializable, Comparable<PadJustifyFieldSupport.Justify>, FieldOption
Enclosing class:
PadJustifyFieldSupport

public static enum PadJustifyFieldSupport.Justify
extends Enum<PadJustifyFieldSupport.Justify>
implements FieldOption

Justify enumerated type.


Enum Constant Summary
CENTER
          Center
LEFT
          Left-justify
RIGHT
          Right-justify
 
Method Summary
protected abstract  InputStream getInputStream(byte[] src, PadJustifyFieldSupport dest)
          Get an InputStream for the specified parameters.
static PadJustifyFieldSupport.Justify valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PadJustifyFieldSupport.Justify[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LEFT

public static final PadJustifyFieldSupport.Justify LEFT
Left-justify


RIGHT

public static final PadJustifyFieldSupport.Justify RIGHT
Right-justify


CENTER

public static final PadJustifyFieldSupport.Justify CENTER
Center

Method Detail

values

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

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

valueOf

public static PadJustifyFieldSupport.Justify 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

getInputStream

protected abstract InputStream getInputStream(byte[] src,
                                              PadJustifyFieldSupport dest)
Get an InputStream for the specified parameters.

Parameters:
src - byte[] value
dest - PadJustifyFieldSupport
Returns:
InputStream


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.