|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.dex.file.Item
com.android.dx.dex.file.IndexedItem
com.android.dx.dex.file.HeaderItem
public final class HeaderItem
File header section of a .dex file.
| Constructor Summary | |
|---|---|
HeaderItem()
Constructs an instance. |
|
| Method Summary | |
|---|---|
void |
addContents(DexFile file)
Populates a DexFile with items from within this instance. |
ItemType |
itemType()
Returns the item type for this instance. |
int |
writeSize()
Gets the size of this instance when written, in bytes. |
void |
writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section, using the given DexFile to look things up as needed. |
| Methods inherited from class com.android.dx.dex.file.IndexedItem |
|---|
getIndex, hasIndex, indexString, setIndex |
| Methods inherited from class com.android.dx.dex.file.Item |
|---|
typeName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeaderItem()
| Method Detail |
|---|
public ItemType itemType()
itemType in class Itemnon-null; the item typepublic int writeSize()
writeSize in class Item>= 0; the write sizepublic void addContents(DexFile file)
DexFile with items from within this instance.
This will not add an item to the file for this instance itself
(which should have been done by whatever refers to this instance).
Note: Subclasses must override this to do something appropriate.
addContents in class Itemfile - non-null; the file to populate
public void writeTo(DexFile file,
AnnotatedOutput out)
DexFile to look things up as needed.
If this instance keeps track of its offset, then this method will
note the written offset and will also throw an exception if this
instance has already been written.
writeTo in class Itemfile - non-null; the file to use for referenceout - non-null; where to write to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||