|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neociclo.odetteftp.protocol.CommandFormat.Field
public static class CommandFormat.Field
Command Format is compound of one or more fields. This class represents the Field attributes definition.
Dynamic fields are used on protocol version 2.0 implementation and above to indicate the field size or position is computed according to another defined CommandFormat field. Eg.: TheSFNAREAST
field size
is calculate using SFNAREASL
numeric value.
Long filename extension is used in protocol version 1.3 and 1.3
implementations to support datasetName longer than 26 octets, but its
a proprietary definition in SFID
command format (up
to 128 octets length).
Field Summary | |
---|---|
static char |
ALPHANUMERIC_TYPE
An alphanumeric field of length n octets. |
static char |
BINARY_TYPE
A binary field of length n octets. |
static char |
ENCODED_TYPE
An field of length n octets, encoded using [UTF-8]. |
static char |
FIXED_FORMAT
A field containing fixed values. |
static char |
NUMERIC_TYPE
A numeric field of length n octets. |
static char |
VARIABLE_FORMAT
A field with variable values within a defined range. |
Constructor Summary | |
---|---|
CommandFormat.Field(int pos,
String name,
char format,
char type,
int size)
|
|
CommandFormat.Field(int pos,
String name,
char format,
char type,
String lengthFieldName)
|
|
CommandFormat.Field(String posAfterFieldName,
String name,
char format,
char type,
int size)
|
|
CommandFormat.Field(String posAfterFieldName,
String name,
char format,
char type,
String lengthFieldName)
|
Method Summary | |
---|---|
char |
getFormat()
|
String |
getLengthFieldName()
|
String |
getName()
|
int |
getPosition()
|
String |
getPositionAfterFieldName()
|
int |
getSize()
|
char |
getType()
|
boolean |
isDynamic()
|
boolean |
shouldComputePosition()
|
boolean |
shouldComputeSize()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char ALPHANUMERIC_TYPE
public static final char BINARY_TYPE
Numbers encoded as binary are always unsigned and in network byte order.
public static final char ENCODED_TYPE
public static final char FIXED_FORMAT
public static final char NUMERIC_TYPE
The numerals: 0 to 9 The upper case letters: A to Z The following special set: / - . & ( ) space.Space is not allowed as an embedded character.
public static final char VARIABLE_FORMAT
Constructor Detail |
---|
public CommandFormat.Field(int pos, String name, char format, char type, int size)
public CommandFormat.Field(int pos, String name, char format, char type, String lengthFieldName)
public CommandFormat.Field(String posAfterFieldName, String name, char format, char type, int size)
public CommandFormat.Field(String posAfterFieldName, String name, char format, char type, String lengthFieldName)
Method Detail |
---|
public char getFormat()
public String getName()
public int getPosition()
public int getSize()
public char getType()
public boolean isDynamic()
public boolean shouldComputeSize()
public boolean shouldComputePosition()
public String getLengthFieldName()
public String getPositionAfterFieldName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |