|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.jqhome.jwps.ea.AbstractEA
|
+--net.jqhome.jwps.ea.EAVector
|
+--net.jqhome.jwps.ea.MVMTEA
This is a list of EAs (the MV = 'mutli-valued' part of the name) and these may be of any type ( MT = 'multi-type'). These may be nested in any way and the only limit is size.
| Nested Class Summary | |
class |
MVMTEA.FoundEA
An inner class used for parsing RawEA objects. |
| Field Summary |
| Fields inherited from class net.jqhome.jwps.ea.EAVector |
EA_CODEPAGE_INDEX, EA_COUNT_INDEX, EA_TYPE_INDEX, MVMT_DATA_CONTROL_BLOCK_LENGTH, MVMT_DATA_LENGTH_OFFSET, MVMT_DATA_OFFSET, MVMT_DATA_START_INDEX, MVMT_DATA_TYPE_OFFSET, MVST_DATA_CONTROL_BLOCK_LENGTH, MVST_DATA_LENGTH_OFFSET, MVST_DATA_OFFSET, MVST_DATA_START_INDEX, MVST_TYPE_INDEX |
| Constructor Summary | |
MVMTEA()
Default constructor. |
|
MVMTEA(RawEA rawEA)
Constructor to make this EA from a wrappered byte array. |
|
MVMTEA(java.lang.String name)
This is a convenience constructor. |
|
MVMTEA(java.lang.String name,
boolean isCritical)
Constructor to set the name and if it is critical. |
|
MVMTEA(java.lang.String name,
int type,
boolean isCritical)
Constructor to set the name, type and if it si critical. |
|
| Method Summary | |
void |
fromRawEA(RawEA rawEA)
Converts this into a wrappered byte array. |
protected MVMTEA.FoundEA |
getEA(byte[] ba,
int startIndex)
Part of the mechanism for decoding raw EAs. |
protected int |
getEntryType(byte[] ba,
int startIndex)
This returns the numeric type of the entry for the MVMT EA. |
protected MVMTEA.FoundEA |
getMVEA2(byte[] ba,
int startIndex)
This will locate the next multi-valued EA. |
protected int |
getMVMTCount(byte[] ba,
int startIndex)
This returns the number of entries this MVMT thinks it has. |
int |
getRawEASize()
Returns the size of all the wrappered EAs. |
protected int |
getSTEntryLength(byte[] ba,
int startIndex)
Gets the length of the next simple EA. |
protected MVMTEA.FoundEA |
getSVEA2(byte[] ba,
int startIndex)
Locates the next simple EA (string or binary). |
protected void |
mvmtSetup(RawEA rawEA)
This is where the actual work is done to process a raw EA. |
RawEA |
toRawEA()
Converts this into a wrappered byte array. |
java.lang.String |
toString()
A report on the contents of this EA. |
int |
valueSize()
This computes the total number of bytes in the actual value of this EA. |
| Methods inherited from class net.jqhome.jwps.ea.EAVector |
addEA, addEA, addEA, equals, getCodepage, getEAAt, getEACodepage, getEACount, getEAType, getVector, isDefaultCodepage, removeEAAt, setCodepage, size, toXML |
| Methods inherited from class net.jqhome.jwps.ea.AbstractEA |
fileToBytes, getName, getType, isCritical, isUserDefined, setCritical, setName, setType |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MVMTEA(RawEA rawEA)
throws JWPException
EAFactory.
rawEA - the wrappered byte array
JWPException - if the numeric type of this object cannot be determined or if the creation of one of its sub-EAs fails.
public MVMTEA()
throws JWPException
JWPException - if an error occured in the superclass.
public MVMTEA(java.lang.String name)
throws JWPException
JWPException - if an error occured in the superclass
public MVMTEA(java.lang.String name,
int type,
boolean isCritical)
throws JWPException
name - the name of this EAtype - the numeric typeisCritical - true if this is to be a critical EA
public MVMTEA(java.lang.String name,
boolean isCritical)
throws JWPException
EAT_MVMT.
name - the name of the EAisCritical - true if this EA is to be a critical EA.| Method Detail |
public void fromRawEA(RawEA rawEA)
throws JWPException
fromRawEA in class AbstractEArawEA - the wrappered byte array to process
JWPException - if an error processing the raw EA occurs.public int valueSize()
AbstractEAgetEASize() in FileEA. This is because there are additional control bytes
that the system requires.
valueSize in class AbstractEApublic int getRawEASize()
getRawEASize in class AbstractEA
protected MVMTEA.FoundEA getEA(byte[] ba,
int startIndex)
throws JWPException
ba - the byte arraystartIndex - where the start the search
JWPException - if looking for an EA fails to find one
protected MVMTEA.FoundEA getSVEA2(byte[] ba,
int startIndex)
throws JWPException
ba - the byte array to searchstartIndex - the index from which to start the search
JWPException - if there is a problem locating the EA or if the byte array if corrupt
protected MVMTEA.FoundEA getMVEA2(byte[] ba,
int startIndex)
throws JWPException
ba - byte array to searchstartIndex - where to start the search
JWPException - if the multi-valued EA could not be located or if the byte array if corrupt.
public RawEA toRawEA()
throws JWPException
toRawEA in class AbstractEAJWPException - if there is a problem creating it.
protected int getSTEntryLength(byte[] ba,
int startIndex)
ba - byte array to searchstartIndex - where to start
protected int getEntryType(byte[] ba,
int startIndex)
ba - byte array to processstartIndex - where to start the search
protected int getMVMTCount(byte[] ba,
int startIndex)
ba - byte array to processstartIndex - where to start the search
protected void mvmtSetup(RawEA rawEA)
throws JWPException
rawEA - the wrappered byte array
JWPException - if there is an error processing this EA.public java.lang.String toString()
toString in class EAVector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||