ewe.database
Class DatabaseObject.MetaData
java.lang.Object
ewe.util.Errorable
ewe.io.BasicStreamObject
ewe.io.BlockingStreamObject
ewe.database.DatabaseObject.MetaData
- All Implemented Interfaces:
- BasicStream, Stream, Streamable
- Enclosing class:
- DatabaseObject
- protected abstract class DatabaseObject.MetaData
- extends BlockingStreamObject
| Methods inherited from class ewe.io.BlockingStreamObject |
close, closeStream, flush, flushStream, isOpen, nonBlockingRead, nonBlockingWrite, readBytes, readBytes, writeBytes, writeBytes |
numberOfFragments
public int numberOfFragments
- This is only valid after a read operation.
DatabaseObject.MetaData
protected DatabaseObject.MetaData(String name)
openForReplacing
public abstract void openForReplacing(int bytesNeededToWrite)
throws IOException
- Throws:
IOException
openForAppending
public abstract boolean openForAppending(boolean mustExist)
throws IOException
- Throws:
IOException
openForOverwriting
public abstract void openForOverwriting(int bytesNeededToWrite)
throws IOException
- Throws:
IOException
openForReading
public abstract int openForReading()
throws IOException
- Throws:
IOException
write
public abstract void write(byte[] data,
int offset,
int length)
throws IOException
- Description copied from interface:
Stream
- Writes bytes from a buffer to the Stream.
This method blocks the current Coroutine until all bytes are written,
but allows others to continue executing.
- Specified by:
write in interface Stream- Overrides:
write in class BlockingStreamObject
- Throws:
IOException
read
public abstract int read(byte[] data,
int offset,
int length)
throws IOException
- Description copied from interface:
Stream
- Reads bytes into a buffer. This method blocks the current Coroutine, but allows others
to continue executing.
- Specified by:
read in interface Stream- Overrides:
read in class BlockingStreamObject
- Throws:
IOException
size
public abstract long size()
throws IOException
- Throws:
IOException
delete
public abstract boolean delete()
throws IOException
- Throws:
IOException
readAll
public void readAll(byte[] data,
int offset,
int length)
throws IOException
- Throws:
IOException
openAndReadAll
public ByteArray openAndReadAll(ByteArray ba)
throws IOException
- Throws:
IOException
openAndReadAll
public byte[] openAndReadAll()
throws IOException
- Throws:
IOException