public interface IBackend
IBackendReader
and IBackendWriter
-implementations are
provided. Utility
methods for common interaction with
the storage are provided via the IOUtils
-class.Modifier and Type | Interface and Description |
---|---|
static interface |
IBackend.IBackendFactory
Factory for generating an
IBackend -instance. |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closing this storage.
|
IByteHandler.IByteHandlerPipeline |
getByteHandler()
Getting the ByteHandlers associated with this Storage.
|
IBackendReader |
getReader()
Getting a reader.
|
IBackendWriter |
getWriter()
Getting a writer.
|
void |
initialize()
Initializing the storage.
|
boolean |
truncate()
Truncating a storage.
|
IBackendWriter getWriter() throws TTException
IBackendWriter
instanceTTIOException
- if the initalisation failsTTException
IBackendReader getReader() throws TTException
IBackendReader
instanceTTIOException
- if the initalisation failsTTException
void close() throws TTException
TTIOException
- exception to be thrownsTTException
IByteHandler.IByteHandlerPipeline getByteHandler()
IByteHandler.IByteHandlerPipeline
transforming bytes before storageboolean truncate() throws TTException
TTException
- if anything weird happensvoid initialize() throws TTIOException
TTIOException
Copyright © 2013. All Rights Reserved.