jef.dna.infoStructures.impl
Class FieldInfo
java.lang.Object
jef.dna.infoStructures.impl.InfoStructureAncestor
jef.dna.infoStructures.impl.FieldInfo
- All Implemented Interfaces:
- java.lang.Cloneable, FieldInfoStructure, InfoStructure
public class FieldInfo
- extends InfoStructureAncestor
- implements FieldInfoStructure
A class representing a Field Info structure.
Method Summary |
java.lang.Object |
clone()
The clone() method will return a new instance whose reference to the
containing Dna is not modified. |
void |
fromStream(java.io.DataInputStream dis,
Dna dna)
Initialize the current InfoStructure from the provided stream. |
void |
toStream(java.io.DataOutputStream dos)
Serialize the InfoStructure to a stream. |
protected void |
validateAccessFlags(ConstantPoolTable cpt)
|
Methods inherited from class jef.dna.infoStructures.impl.InfoStructureAncestor |
getAccessFlags, getAttributeCount, getAttributes, getDescriptorIndex, getDna, getNameIndex, setAccessFlags, setAttributeCount, setAttributes, setDescriptorIndex, setDna, setNameIndex, updateRefs, validate, validateAttributeCount, validateAttributes, validateDescriptorIndex, validateNameIndex |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jef.dna.infoStructures.InfoStructure |
getAccessFlags, getAttributeCount, getAttributes, getDescriptorIndex, getDna, getNameIndex, setAccessFlags, setAttributeCount, setAttributes, setDescriptorIndex, setDna, setNameIndex, updateRefs, validate |
FieldInfo
public FieldInfo()
- Constructor.
toStream
public void toStream(java.io.DataOutputStream dos)
throws DnaSerializationException
- Description copied from interface:
InfoStructure
- Serialize the
InfoStructure
to a stream.
- Specified by:
toStream
in interface InfoStructure
- Specified by:
toStream
in class InfoStructureAncestor
- Parameters:
dos
- The output stream to write to
- Throws:
DnaSerializationException
fromStream
public void fromStream(java.io.DataInputStream dis,
Dna dna)
throws DnaDeserializationException,
MissingDnaContainerException
- Description copied from interface:
InfoStructure
- Initialize the current
InfoStructure
from the provided stream. The provided
Dna
instance, if not null
, will replace the one set by a
formerly invoked setDna()
method. Otherwise, should the both the provided
Dna
instance and the one set by the setDna
method be
null
, this method will throw a MissingDnaContainerException
.
- Specified by:
fromStream
in interface InfoStructure
- Specified by:
fromStream
in class InfoStructureAncestor
- Parameters:
dis
- The input stream the InfoStructure
should be read fromdna
- The Dna
instance which will contain this InfoStructure
instance
- Throws:
DnaDeserializationException
MissingDnaContainerException
validateAccessFlags
protected void validateAccessFlags(ConstantPoolTable cpt)
throws FieldInfoValidationException
- Specified by:
validateAccessFlags
in class InfoStructureAncestor
- Throws:
FieldInfoValidationException
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Description copied from class:
InfoStructureAncestor
- The
clone()
method will return a new instance whose reference to the
containing Dna
is not modified.
- Specified by:
clone
in interface InfoStructure
- Overrides:
clone
in class InfoStructureAncestor
- Throws:
java.lang.CloneNotSupportedException