| java.lang.Object wim_data.FileSystem
FileSystem | public class FileSystem (Code) | | Represents WIM file system.
|
Inner Class :class CardFile | |
Field Summary | |
final static int | DIR File attribute constant. | final static int | EMPTY File attribute constant. | final static int | PIN File attribute constant. | final static int | PrK File attribute constant. | final static int | READ File attribute constant. | final static int | UPDATE File attribute constant. | final static int | WIM File attribute constant. | CardFile | base Base directory for WIM files. | Hashtable | labels Hash table used to determine file offsets in resuting data. | CardFile | root Root directory for this file system. |
Constructor Summary | |
public | FileSystem(short[] path) Constructor. |
Method Summary | |
public void | addFile(short[] path, int type, byte[] data) Adds a new file to the file system. | public void | addFile(short[] path, int type, byte[] data, String label) Adds a new file to the file system. | public byte[] | getEncoded() Returns binary representation of this file system. | public int | getOffset(String label) Returs file offset in resulting data array. |
DIR | final static int DIR(Code) | | File attribute constant.
|
EMPTY | final static int EMPTY(Code) | | File attribute constant.
|
PIN | final static int PIN(Code) | | File attribute constant.
|
PrK | final static int PrK(Code) | | File attribute constant.
|
READ | final static int READ(Code) | | File attribute constant.
|
UPDATE | final static int UPDATE(Code) | | File attribute constant.
|
WIM | final static int WIM(Code) | | File attribute constant.
|
base | CardFile base(Code) | | Base directory for WIM files.
|
labels | Hashtable labels(Code) | | Hash table used to determine file offsets in resuting data.
|
root | CardFile root(Code) | | Root directory for this file system.
|
FileSystem | public FileSystem(short[] path)(Code) | | Constructor.
Parameters: path - root directory for this file system |
addFile | public void addFile(short[] path, int type, byte[] data)(Code) | | Adds a new file to the file system.
Parameters: path - file path Parameters: type - file type Parameters: data - file body |
addFile | public void addFile(short[] path, int type, byte[] data, String label)(Code) | | Adds a new file to the file system.
Parameters: path - file path Parameters: type - file type Parameters: data - file body Parameters: label - label that can be used to retrieve file offset |
getEncoded | public byte[] getEncoded() throws IOException(Code) | | Returns binary representation of this file system.
binary representation of this file system throws: IOException - if I/O error occurs |
getOffset | public int getOffset(String label)(Code) | | Returs file offset in resulting data array.
Parameters: label - file label offset value |
|
|