NWNFiles
Class ERFResourceEntry

java.lang.Object
  |
  +--NWNFiles.ERFResourceEntry

public class ERFResourceEntry
extends Object


Field Summary
protected static int MaxFileNameLength
           Represents ...
 
Constructor Summary
protected ERFResourceEntry(File newFile, ERFFile caller)
           Does ...
protected ERFResourceEntry(int _size, ERFFile caller, int _offset, String _fileName, int _fileType)
           Does ...
 
Method Summary
 File extract()
           Does ...
 File extract(File directory)
           Does ...
 ERFFile getErfFile()
           Does ...
static String GetExtension(Integer id)
           Does ...
 File getFile()
           Does ...
 String getFileName()
           Does ...
 int getFileType()
           Does ...
static int GetID(String extension)
           Does ...
 int getOffset()
           Does ...
 int getSize()
           Does ...
 boolean isInOriginalFile()
           Does ...
protected  void setErfFile(ERFFile _erfFile)
           Does ...
protected  void setFile(File _file)
           Does ...
protected  void setFileName(String _fileName)
           Does ...
protected  void setFileType(int _fileType)
           Does ...
protected  void setInOriginalFile(boolean _inOriginalFile)
           Does ...
protected  void setOffset(int _offset)
           Does ...
protected  void setSize(int _size)
           Does ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MaxFileNameLength

protected static int MaxFileNameLength

Represents ...

Constructor Detail

ERFResourceEntry

protected ERFResourceEntry(File newFile,
                           ERFFile caller)

Does ...

Parameters:
newFile - ...


ERFResourceEntry

protected ERFResourceEntry(int _size,
                           ERFFile caller,
                           int _offset,
                           String _fileName,
                           int _fileType)

Does ...

Method Detail

GetID

public static int GetID(String extension)

Does ...

Parameters:
extension - ...

Returns:
a int with ...


GetExtension

public static String GetExtension(Integer id)

Does ...

Parameters:
id - ...

Returns:
a String with ...


extract

public File extract()
             throws IOException

Does ...

Returns:
a File with ...

IOException

extract

public File extract(File directory)
             throws IOException

Does ...

Parameters:
directory - ...

Returns:
a File with ...

IOException

isInOriginalFile

public boolean isInOriginalFile()

Does ...

Returns:
a boolean with ...


getErfFile

public ERFFile getErfFile()

Does ...

Returns:
a ERFFile with ...


getFile

public File getFile()

Does ...

Returns:
a File with ...


getSize

public int getSize()

Does ...

Returns:
a int with ...


getOffset

public int getOffset()

Does ...

Returns:
a int with ...


getFileName

public String getFileName()

Does ...

Returns:
a String with ...


getFileType

public int getFileType()

Does ...

Returns:
a int with ...


setFileType

protected void setFileType(int _fileType)

Does ...

Parameters:
_fileType - ...


setInOriginalFile

protected void setInOriginalFile(boolean _inOriginalFile)

Does ...

Parameters:
_inOriginalFile - ...


setFile

protected void setFile(File _file)

Does ...

Parameters:
_file - ...


setErfFile

protected void setErfFile(ERFFile _erfFile)

Does ...

Parameters:
_erfFile - ...


setFileName

protected void setFileName(String _fileName)
                    throws NameTooLong

Does ...

Parameters:
_fileName - ...

NameTooLong

setOffset

protected void setOffset(int _offset)

Does ...

Parameters:
_offset - ...


setSize

protected void setSize(int _size)

Does ...

Parameters:
_size - ...