ccc.persistence
Interface DataRepository


public interface DataRepository

Repository for file entities.

Author:
Civic Computing Ltd.

Method Summary
 Data create(java.io.InputStream dataStream, long length)
          Create a new item of binary data.
 void retrieve(Data data, StreamAction action)
          Retrieve an existing item of binary data and write it to an output stream.
 

Method Detail

create

Data create(java.io.InputStream dataStream,
            long length)
Create a new item of binary data.

Parameters:
dataStream - The input stream from which the bytes for the new data item should be read.
length - The length of the input, in bytes.
Returns:
An instance of Data that represents the contents of the stream.

retrieve

void retrieve(Data data,
              StreamAction action)
Retrieve an existing item of binary data and write it to an output stream.

Parameters:
data - The identifier for the existing data.
action - An action to perform with the retrieved data.


Copyright © 2010. All Rights Reserved.