|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cb2java.copybook.Element net.sf.cb2java.copybook.Group net.sf.cb2java.copybook.Copybook
Represents a copybook data definition in memory
acts as a Group element but as a special parent being the copybook itself
Nested Class Summary | |
static class |
Copybook.ByteBuffer
a helper class for buffering the data as it is processed |
Field Summary | |
static java.lang.String |
DEFAULT_ENCODING
|
static java.lang.String |
DEFAULT_FLOAT_CONVERSION
|
static boolean |
DEFAULT_LITTLE_ENDIAN
|
protected net.sf.cb2java.copybook.Values |
values
|
Method Summary | |
Record |
createNew()
creates a new empty application data instance |
Element |
getAliased(java.lang.String name)
Gets an aliased element. |
java.lang.String |
getEncoding()
retrieves the current encoding for the copybook |
java.lang.String |
getFloatConversion()
|
boolean |
getLittleEndian()
|
Record |
parseData(byte[] data)
creates a new application data element with the given data |
Record |
parseData(java.io.InputStream reader)
creates a new application data element with the given data |
void |
setEncoding(java.lang.String encoding)
Sets the encoding for the copybook instance, used for parsing and writing of data |
void |
setFloatConversion(java.lang.String className)
|
void |
setLittleEndian(boolean littleEndian)
|
Methods inherited from class net.sf.cb2java.copybook.Group |
getChildren, getLength, getValue, setValue, setValue, toBytes, toString, validate |
Methods inherited from class net.sf.cb2java.copybook.Element |
getBytes, getLevel, getName, getOccurs, getPosition, getString, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_ENCODING
public static final boolean DEFAULT_LITTLE_ENDIAN
public static final java.lang.String DEFAULT_FLOAT_CONVERSION
protected net.sf.cb2java.copybook.Values values
Method Detail |
public Element getAliased(java.lang.String name)
name
- i'm not even sure anymore
public Record createNew()
public Record parseData(byte[] data) throws java.io.IOException
data
- the data to create the instance for
java.io.IOException
public Record parseData(java.io.InputStream reader) throws java.io.IOException
reader
- the data to create the instance for
java.io.IOException
public void setEncoding(java.lang.String encoding)
encoding
- the encoding for the systempublic java.lang.String getEncoding()
public void setLittleEndian(boolean littleEndian)
public boolean getLittleEndian()
public void setFloatConversion(java.lang.String className)
public java.lang.String getFloatConversion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |