de.unkrig.commons.file.contentstransformation
Interface ContentsTransformer

All Known Implementing Classes:
SelectiveContentsTransformer

public interface ContentsTransformer

An entity that transforms contents, i.e. it reads bytes from an InputStream and writes bytes to an OutputStream.


Method Summary
 void transform(java.lang.String path, java.io.InputStream is, java.io.OutputStream os)
          Reads bytes from is (typically until end-of-input) and writes bytes to os.
 

Method Detail

transform

void transform(java.lang.String path,
               java.io.InputStream is,
               java.io.OutputStream os)
               throws java.io.IOException
Reads bytes from is (typically until end-of-input) and writes bytes to os. Closes neither of the two streams.

Parameters:
path - Desisgnates the contents that is transformed
Throws:
java.io.IOException