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