|
||||||||||
| 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.ByteArrayEA
An EA whose value is an array of bytes.
| Field Summary |
| Constructor Summary | |
ByteArrayEA()
|
|
ByteArrayEA(RawEA rawEA)
|
|
ByteArrayEA(java.lang.String name)
|
|
ByteArrayEA(java.lang.String name,
byte[] value)
|
|
ByteArrayEA(java.lang.String name,
byte[] value,
int type,
boolean isCritical)
|
|
ByteArrayEA(java.lang.String name,
byte[] value,
int start,
int length)
|
|
ByteArrayEA(java.lang.String name,
int type)
Sets a non-critical EA without value |
|
ByteArrayEA(java.lang.String name,
int type,
boolean isCritical)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
void |
fromRawEA(RawEA rawEA)
The byte stream that the C API returns is only slightly parsed before being put into a raw EA object. |
int |
getRawEASize()
This returns the size of the raw EA item. |
byte[] |
getValue()
|
void |
setValue(byte[] value)
|
void |
setValue(java.io.File file)
Reads in the value of a file and sets the value from that. |
RawEA |
toRawEA()
This method will take the EA and turn it into a Raw EA, that is, one that is almost directly storable in OS2. |
java.lang.String |
toString()
|
org.w3c.dom.Node |
toXML(org.w3c.dom.Node node)
This method will serialize this EA as a node. |
int |
valueSize()
This computes the total number of bytes in the actual value of this EA. |
| 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 ByteArrayEA(java.lang.String name,
int type,
boolean isCritical)
throws JWPException
public ByteArrayEA()
throws JWPException
public ByteArrayEA(java.lang.String name,
int type)
throws JWPException
public ByteArrayEA(java.lang.String name)
throws JWPException
public ByteArrayEA(java.lang.String name,
byte[] value,
int type,
boolean isCritical)
throws JWPException
public ByteArrayEA(RawEA rawEA)
throws JWPException
public ByteArrayEA(java.lang.String name,
byte[] value)
throws JWPException
public ByteArrayEA(java.lang.String name,
byte[] value,
int start,
int length)
throws JWPException
| Method Detail |
public byte[] getValue()
public void setValue(java.io.File file)
throws JWPException
JWPException
public void setValue(byte[] value)
throws JWPException
JWPExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public void fromRawEA(RawEA rawEA)
throws JWPException
AbstractEA
fromRawEA in class AbstractEAJWPExceptionpublic int getRawEASize()
AbstractEA
getRawEASize in class AbstractEA
public RawEA toRawEA()
throws JWPException
AbstractEA
toRawEA in class AbstractEAJWPExceptionpublic int valueSize()
AbstractEAgetEASize() in FileEA. This is because there are additional control bytes
that the system requires.
valueSize in class AbstractEA
public org.w3c.dom.Node toXML(org.w3c.dom.Node node)
throws JWPException
AbstractEA
toXML in class AbstractEAJWPException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||