|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjef.dna.attributes.impl.GenericAttribute
jef.dna.attributes.impl.DeprecatedAttribute
public class DeprecatedAttribute
Class representing a Deprecated Attribute.
Field Summary | |
---|---|
protected static int |
length
|
protected static Logger |
logger
|
Fields inherited from class jef.dna.attributes.impl.GenericAttribute |
---|
attribFactory, attributeNameIndex, dna, instrFactory |
Constructor Summary | |
---|---|
DeprecatedAttribute()
Creates a new instance of DeprecatedAttribute |
Method Summary | |
---|---|
java.lang.Object |
clone()
The clone() method will return a new instance whose reference to the
containing Dna instance is not modified. |
void |
fromStream(java.io.DataInputStream dis,
Dna dna,
int indexName,
int length)
This method reads the data with which the attribute has to be initialized. |
int |
getBytesCount()
This method must return the overall number of bytes required by the component implementing this interface. |
void |
toStream(java.io.DataOutputStream dos)
This method writes the attribute to the provided output stream. |
void |
updateRefs(int offset)
This method updates all the references pointing to constant pool table's entries this attributes holds. |
Methods inherited from class jef.dna.attributes.impl.GenericAttribute |
---|
getDna, getLength, getNameIndex, innerValidations, setDna, setNameIndex, validate, validateNameIndex |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jef.dna.attributes.Attribute |
---|
getDna, getLength, getNameIndex, setDna, setNameIndex, validate |
Field Detail |
---|
protected static final int length
protected static Logger logger
Constructor Detail |
---|
public DeprecatedAttribute()
Method Detail |
---|
public void toStream(java.io.DataOutputStream dos) throws DnaSerializationException
Attribute
toStream
in interface Attribute
dos
- The output stream
DnaSerializationException
- Errors while writing the attribute to the output streampublic void fromStream(java.io.DataInputStream dis, Dna dna, int indexName, int length) throws MissingDnaContainerException, DnaDeserializationException
Attribute
fromStream
in interface Attribute
dis
- The input streamdna
- The Dna
instance this class belongs toindexName
- The value of the name indexlength
- The length of the attribute
MissingDnaContainerException
- There is no reference to the current Dna
container
DnaDeserializationException
- Errors while reading the attribute from the streampublic void updateRefs(int offset)
Attribute
updateRefs
in interface Attribute
updateRefs
in class GenericAttribute
offset
- The offsetpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
GenericAttribute
clone()
method will return a new instance whose reference to the
containing Dna
instance is not modified.
clone
in interface Attribute
clone
in class GenericAttribute
java.lang.CloneNotSupportedException
public int getBytesCount()
BytesCountable
getBytesCount
in interface BytesCountable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |