FileStreamFactory

public interface FileStreamFactory

Defines methods which are required for instantiating and releasing output file stream.

Methods

Method Description
createFileStream() The method that returns readable stream.
closeFileStream(OutputStream fileStream) Releases the stream created by #createFileStream().createFileStream() method.

createFileStream()

public abstract OutputStream createFileStream()

The method that returns readable stream.

Returns: java.io.OutputStream - OutputStream used to write output file data.

closeFileStream(OutputStream fileStream)

public abstract void closeFileStream(OutputStream fileStream)

Releases the stream created by #createFileStream().createFileStream() method.

Parameters:

Parameter Type Description
fileStream java.io.OutputStream OutputStream created by #createFileStream().createFileStream() method.