org.fossilec.odettej.service
Class RecordFormat

java.lang.Object
  extended by org.fossilec.odettej.service.RecordFormat

public final class RecordFormat
extends java.lang.Object


Field Summary
static RecordFormat FIXED
          Each record in the file has the same length.
static RecordFormat TEXTFILE
          A Text File is defined as a sequence of ASCII characters, containing no control characters except CR/LF which delimits lines.
static RecordFormat UNSTRUCTURED
          The file contains a stream of data.
static RecordFormat VARIABLE
          The records in the file can have different lengths.
 
Method Summary
 java.lang.String getCode()
           
static RecordFormat parse(java.lang.String code)
          Convenient method for parsing the proper CommandIdentifier instance given a identifier character.
 java.lang.String toString()
           
static java.util.Collection values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIXED

public static final RecordFormat FIXED
Each record in the file has the same length.


VARIABLE

public static final RecordFormat VARIABLE
The records in the file can have different lengths.


UNSTRUCTURED

public static final RecordFormat UNSTRUCTURED
The file contains a stream of data. No structure is defined.


TEXTFILE

public static final RecordFormat TEXTFILE
A Text File is defined as a sequence of ASCII characters, containing no control characters except CR/LF which delimits lines. A line will not have more than 2048 characters.

Method Detail

getCode

public java.lang.String getCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

parse

public static RecordFormat parse(java.lang.String code)
Convenient method for parsing the proper CommandIdentifier instance given a identifier character.

Parameters:
identifier - The command identifier being evaluated
Returns:
CommandIdentifier Instance that correspond to the parameter
Throws:
CommandNotRecognisedException - Command not recognised

values

public static java.util.Collection values()


Copyright © 2005 ObjectWeb Consortium. All Rights Reserved.