|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--NWNFiles.NWNFile | +--NWNFiles.ERFFile
This class allows to handle bioware ERF files.
Nested Class Summary |
Nested classes inherited from class NWNFiles.NWNFile |
NWNFile.FileState |
Field Summary | |
protected static String |
DefaultVersion
The default file version. |
protected static int |
HeaderSize
|
protected static int |
KeyStructureSize
All known ERF file types. |
static String[] |
KownERFFileTypes
|
protected static int |
ResourceListEntrySize
|
Fields inherited from class NWNFiles.NWNFile |
currentLanguage, fileState |
Constructor Summary | |
ERFFile()
|
|
ERFFile(File filePath)
Does ... |
|
ERFFile(File filePath,
Observer observer)
|
Method Summary | |
ERFResourceEntry |
addFile(File filePath)
Does ... |
void |
addStringListElement(StringListElement newElement)
Does ... |
void |
finalize()
Does ... |
int |
getBuildDay()
Number of days since january the 1st |
int |
getBuildYear()
Number of years since 1900. |
File |
getFile()
|
String |
getFileName()
Represents ... |
int |
getFileNumber()
Represents ... |
String |
getFileType()
Does ... |
String |
getFileVersion()
Does ... |
ERFResourceEntry |
getResourceEntry(int index)
Does ... |
int |
getResRef()
|
StringListElement |
getStringListElement(int index)
Does ... |
int |
getStringTableElementNumber()
Does ... |
boolean |
isModified()
|
void |
load(File filePath)
|
void |
removeFile(ERFResourceEntry resource)
Does ... |
void |
removeStringListElement(StringListElement element)
|
void |
save()
Does ... |
void |
saveAs(File _file)
Does ... |
void |
setFileName(String _fileName)
Represents ... |
void |
setFileType(String _fileType)
Does ... |
protected void |
setModified(boolean _modified)
|
void |
setResRef(int _resRef)
|
Methods inherited from class NWNFiles.NWNFile |
getCurrentLanguage, getFileState, setCurrentLanguage |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final String DefaultVersion
The default file version.
protected static final int HeaderSize
protected static final int KeyStructureSize
All known ERF file types.
public static final String[] KownERFFileTypes
protected static final int ResourceListEntrySize
Constructor Detail |
public ERFFile()
public ERFFile(File filePath) throws FileDoesNotExist, InvalidFile, NameTooLong, FileNotFoundException
Does ...
filePath
- ...
public ERFFile(File filePath, Observer observer) throws FileDoesNotExist, InvalidFile, NameTooLong, FileNotFoundException
Method Detail |
public ERFResourceEntry addFile(File filePath) throws FileDoesNotExist, InvalidFile, NameTooLong, FileNotFoundException
Does ...
filePath
- ...
FileDoesNotExist
InvalidFile
NameTooLong
FileNotFoundException
public void addStringListElement(StringListElement newElement)
Does ...
newElement
- ...
public void finalize()
Does ...
finalize
in class Object
public int getBuildDay()
Number of days since january the 1st
public int getBuildYear()
Number of years since 1900.
public File getFile()
public String getFileName()
Represents ...
public int getFileNumber()
Represents ...
public String getFileType()
Does ...
public String getFileVersion()
Does ...
public ERFResourceEntry getResourceEntry(int index) throws ArrayIndexOutOfBoundsException
Does ...
index
- ...
ArrayIndexOutOfBoundsException
public int getResRef()
public StringListElement getStringListElement(int index) throws ArrayIndexOutOfBoundsException
Does ...
index
- ...
ArrayIndexOutOfBoundsException
public int getStringTableElementNumber()
Does ...
public boolean isModified()
public void load(File filePath) throws FileDoesNotExist, InvalidFile, NameTooLong, FileNotFoundException
FileDoesNotExist
InvalidFile
NameTooLong
FileNotFoundException
public void removeFile(ERFResourceEntry resource)
Does ...
resource
- ...
public void removeStringListElement(StringListElement element)
public void save() throws IOException
Does ...
IOException
public void saveAs(File _file) throws IOException
Does ...
IOException
public void setFileName(String _fileName)
Represents ...
public void setFileType(String _fileType) throws BadFileType
Does ...
_fileType
- ...
BadFileType
protected void setModified(boolean _modified)
public void setResRef(int _resRef)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |