com.ados.hestia.utils.io
Interface IStore

All Superinterfaces:
Serializable
All Known Implementing Classes:
DBStore, FileStore, MemoryStore, SmartStore

public interface IStore
extends Serializable

Version:
$Revision: 1312 $ $Date: 2005-11-09 07:34:17 +0900 $

Method Summary
 OutputStream createStream()
          Create output stream to write data.
 String getID()
          Returns id of store.
 long getSize()
          Returns size of data at store.
 InputStream openSharedStream()
          Open shared stream to read data.
 InputStream openStream()
          Open ordinary stream to read data.
 

Method Detail

getID

String getID()
Returns id of store.

Returns:
id of store.

openStream

InputStream openStream()
                       throws IOException
Open ordinary stream to read data.

Returns:
opened stream
Throws:
IOException - if stream can not be opened

openSharedStream

InputStream openSharedStream()
                             throws IOException
Open shared stream to read data.

Returns:
opened shared stream
Throws:
IOException - if stream can not be opened

createStream

OutputStream createStream()
                          throws IOException
Create output stream to write data.

Returns:
create opened stream
Throws:
IOException - if stream can not be opened

getSize

long getSize()
Returns size of data at store.

Returns:
size of data at store


Copyright © 2005-2006 ADOS Co.,Ltd.. All Rights Reserved.