org.axiondb.io
public class AxionFileSystem extends Object
Version: $Revision: 1.8 $ $Date: 2005/12/20 18:32:58 $
| Nested Class Summary | |
|---|---|
| class | AxionFileSystem.PidxList |
| Constructor Summary | |
|---|---|
| AxionFileSystem() | |
| Method Summary | |
|---|---|
| void | closeInputStream(InputStream in) |
| void | closeOutputStream(OutputStream out) |
| BufferedDataOutputStream | createBufferedDOS(File file)
create a new file and wrap wrap the stream with BufferedDataOutputStream which
improves perfermance significantly. |
| DataOutputStream | createDataOutputSteam(File file) |
| boolean | createNewFile(File file) |
| ObjectOutputStream | createObjectOutputSteam(File file) |
| AxionFileSystem.PidxList | newPidxList(int count, File file, boolean readonly) |
| AxionInputStream | open(File file)
Open the file in read only mode. |
| AxionOutputStream | open(File file, boolean overwrite)
Open file in append mode if overwrite is false, otherwise create new file. |
| AxionOutputStream | openAppend(File file)
Open file in append mode, position will be set to the end of file. |
| BufferedDataInputStream | openBufferedDIS(File file)
Open file in read only mode, position will be set to 0. seek can be used to perferm
random access. |
| BufferedDataOutputStream | openBufferedDOS(File file, long startPos)
Open a outputsteam and points the file pointer to a given start position in the
file. |
| BufferedDataOutputStream | openBufferedDOSAppend(File file, int bufferSize)
Open file in append mode, position will be set to the end of file. |
| DataInputStream | openDataInputSteam(File file) |
| ObjectInputStream | openObjectInputSteam(File file) |
| IntList | parseIntFile(File file)
Reads a list of int values from a file.
|
| AxionFileSystem.PidxList | parseLongPidx(File file, boolean readOnly)
Reads a list of long values from a file.
|
| AxionFileSystem.PidxList | parseUnsignedIntPidx(File file, boolean readOnly) |
| void | readAll(File file, byte[] rawdata) |
| void | writeIntFile(File file, IntList list)
Writes a list of int values to a file.
|
| void | writeUnsignedInt(BufferedDataOutputStream out, long offset, int value)
Updates an UnsignedInt value to a file.
|
| void | writeUnsignedIntFile(File file, LongList list)
Writes a list of long values to a file.
|
Parameters: file the Fileto read from
Parameters: file the Fileto read from
Parameters: file the Fileto write to
Parameters: raf the Fileto append to offset the pidx file offset to write value data file pointer for a given pidx offset
Parameters: file the Fileto write to