be.re.repo
Interface PlainStorageDelta

All Superinterfaces:
StorageDelta

public interface PlainStorageDelta
extends StorageDelta

The interface for storage implementations that wish to store plain document versions in a delta file.

Author:
Werner Donné

Method Summary
 void read(String vcr, String version, InputStream delta, OutputStream out, String mimeType, Context context)
           
 InputStream read(String vcr, String version, InputStream delta, String mimeType, Context context)
           
 void write(String vcr, String version, InputStream in, InputStream deltaIn, OutputStream deltaOut, String mimeType, Context context)
           
 
Methods inherited from interface be.re.repo.StorageDelta
canDeleteIntermediate, delete
 

Method Detail

read

void read(String vcr,
          String version,
          InputStream delta,
          OutputStream out,
          String mimeType,
          Context context)
          throws IOException
Parameters:
vcr - the local path of the VCR.
version - the local path of the version.
delta - the inputstream of the delta.
out - the outputstream into which the result should be written.
mimeType - the MIME type of the document.
context - the repository context.
Throws:
IOException

read

InputStream read(String vcr,
                 String version,
                 InputStream delta,
                 String mimeType,
                 Context context)
                 throws IOException
Parameters:
vcr - the local path of the VCR.
version - the local path of the version.
delta - the inputstream of the delta.
mimeType - the MIME type of the document.
context - the repository context.
Returns:
The inputstream that wraps delta and performs a possible transformation.
Throws:
IOException

write

void write(String vcr,
           String version,
           InputStream in,
           InputStream deltaIn,
           OutputStream deltaOut,
           String mimeType,
           Context context)
           throws IOException
Parameters:
vcr - the local path of the VCR.
version - the local path of the version.
in - new the inputstream of the version.
deltaIn - the input stream of the current delta.
deltaOut - the outputstream of the updated delta.
mimeType - the MIME type of the document.
context - the repository context.
Throws:
IOException