|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjef.dna.constantInfo.impl.ConstantAncestor
jef.dna.constantInfo.impl.ConstantUtf8
@ClosingCpInfo public class ConstantUtf8
| Field Summary | |
|---|---|
protected static java.lang.String |
className
|
protected static Logger |
logger
|
protected java.lang.String |
type
|
| Fields inherited from class jef.dna.constantInfo.impl.ConstantAncestor |
|---|
cpt, tag |
| Constructor Summary | |
|---|---|
ConstantUtf8()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
The clone() method will return a new instance whose reference to the
containing ConstantPoolTable instance is set to null. |
void |
fromStream(java.io.DataInputStream dis)
This method does not perform anything. |
int |
getLength()
The value of the length item gives the number of bytes in the bytes array (not the length of the resulting string). |
byte[] |
getValue()
The bytes array contains the bytes of the string. |
protected void |
innerValidations(ConstantPoolTable cpt)
|
void |
setLength(int len)
The value of the length item gives the number of bytes in the bytes array (not the length of the resulting string). |
void |
setValue(byte[] val)
The bytes array contains the bytes of the string. |
void |
toStream(java.io.DataOutputStream dos)
This method does not perform anything. |
java.lang.String |
toString()
|
| Methods inherited from class jef.dna.constantInfo.impl.ConstantAncestor |
|---|
getCpt, getTag, getType, setCpt, setTag, updateRefs, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jef.dna.constantInfo.ConstantInfo |
|---|
getCpt, getTag, getType, setCpt, setTag, updateRefs, validate |
| Field Detail |
|---|
protected java.lang.String type
protected static java.lang.String className
protected static Logger logger
| Constructor Detail |
|---|
public ConstantUtf8()
| Method Detail |
|---|
public int getLength()
ConstUtf8
getLength in interface ConstUtf8public void setLength(int len)
ConstUtf8
setLength in interface ConstUtf8len - The length of the byte array representing the stringpublic byte[] getValue()
ConstUtf8
getValue in interface ConstUtf8public void setValue(byte[] val)
ConstUtf8
setValue in interface ConstUtf8val - The byte array representing the string
public void toStream(java.io.DataOutputStream dos)
throws DnaSerializationException
ConstantAncestor
toStream in interface ConstantInfotoStream in class ConstantAncestordos - The DataOutputStream to write the object to
DnaSerializationException
public void fromStream(java.io.DataInputStream dis)
throws DnaDeserializationException
ConstantAncestor
fromStream in interface ConstantInfofromStream in class ConstantAncestordis - The DataInputStream for reading the Constant Info fields
DnaDeserializationException
protected void innerValidations(ConstantPoolTable cpt)
throws ConstantInfoValidationException,
ConstantInfoAttributeOutOfRangeException
innerValidations in class ConstantAncestorConstantInfoValidationException
ConstantInfoAttributeOutOfRangeException
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone() method will return a new instance whose reference to the
containing ConstantPoolTable instance is set to null. It is up
to you appropriately setting it to the correct value.
clone in interface ConstantInfoclone in class ConstantAncestorjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||