public class DataDefinition extends Object
Modifier and Type | Class and Description |
---|---|
class |
DataDefinition.Field
Inner class for Data fields
|
Constructor and Description |
---|
DataDefinition(String charset) |
Modifier and Type | Method and Description |
---|---|
void |
addField(Class clazz)
Well known classes
Short
Integer
Long
Float
Double
Date
|
void |
addField(int len)
For classes with unknown length; this values will be threated as
String s and
truncated at the specified len |
Charset |
getCharset()
Character set values are encoded in.
|
int |
getEncodedLen()
Gets the len of this field after the encoding, this method may be different from getLen()
only if exists strings in the definition
|
DataDefinition.Field |
getField(int i) |
int |
getFieldsCount() |
int |
getLen()
Gets the max len of the data
|
boolean |
isValid() |
public DataDefinition(String charset)
public final boolean isValid()
public int getFieldsCount()
public DataDefinition.Field getField(int i)
public void addField(Class clazz)
clazz
- TreeException
- DOCUMENT ME!public void addField(int len)
String
s and
truncated at the specified lenlen
- public Charset getCharset()
public int getLen()
public int getEncodedLen()
Copyright © 1996–2019 Geotools. All rights reserved.