public abstract class AbstractDataWriter extends java.lang.Object implements DataWriter
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract void |
closeImpl() |
boolean |
isOpen() |
void |
openOrCreateBlock(long address,
long length) |
protected abstract void |
openOrCreateBlockImpl(long address,
long length) |
void |
sync() |
void |
syncDirectory() |
protected abstract void |
syncImpl() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlock, lockInfo, release, writepublic final boolean isOpen()
isOpen in interface DataWriterpublic final void sync()
sync in interface DataWriterpublic void syncDirectory()
syncDirectory in interface DataWriterpublic final void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface DataWriterpublic final void openOrCreateBlock(long address,
long length)
openOrCreateBlock in interface DataWriterprotected abstract void syncImpl()
protected abstract void closeImpl()
protected abstract void openOrCreateBlockImpl(long address,
long length)