nwnintf.format.itp
Class ItpEntry

java.lang.Object
  |
  +--nwnintf.format.itp.ItpEntry

public class ItpEntry
extends java.lang.Object

Represent an "entry" in the itp file.


Field Summary
static int CODE
           
static int INDEXOROFFSET
           
static int NELTS
           
static int SIZE
           
 
Constructor Summary
ItpEntry(ItpFile f)
           
 
Method Summary
 void addElement(ItpElement elt)
          Add a new element.
 ItpElement element(int eltidx)
           
 ItpElement element(java.lang.String name)
           
 int length()
           
 void read(byte[] bytes, int offset, int multimapoffset)
           
 void removeChildren()
           
 void write(ItpWriter w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE

public static int SIZE

CODE

public static int CODE

INDEXOROFFSET

public static int INDEXOROFFSET

NELTS

public static int NELTS
Constructor Detail

ItpEntry

public ItpEntry(ItpFile f)
Method Detail

read

public void read(byte[] bytes,
                 int offset,
                 int multimapoffset)

element

public ItpElement element(int eltidx)

element

public ItpElement element(java.lang.String name)

length

public int length()

addElement

public void addElement(ItpElement elt)
Add a new element. Remember to add it to the ItpFile as well.


removeChildren

public void removeChildren()

write

public void write(ItpWriter w)
           throws java.io.IOException
java.io.IOException