Package com.helger.commons.io
Interface IHasOutputStream
- All Known Subinterfaces:
IHasOutputStreamAndWriter,IReadWriteResource,IWrappedWritableResource,IWritableResource
- All Known Implementing Classes:
AbstractWrappedWritableResource,ByteArrayOutputStreamProvider,FileSystemResource,GZIPWritableResource
public interface IHasOutputStream
A callback interface to retrieve
OutputStream objects.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault OutputStreamgetBufferedOutputStream(EAppend eAppend) Get the output stream to read from the object.getOutputStream(EAppend eAppend) Get the output stream to read from the object.booleanCheck if theOutputStreamfromgetOutputStream(EAppend)orgetBufferedOutputStream(EAppend)can be acquired more than once or not.
-
Method Details
-
getOutputStream
Get the output stream to read from the object. Each time this method is call, a newOutputStreamneeds to be created!- Parameters:
eAppend- appending mode. May not benull.- Returns:
nullif resolving failed.
-
getBufferedOutputStream
Get the output stream to read from the object. Each time this method is call, a newOutputStreamneeds to be created. Internally invokesgetOutputStream(EAppend).- Parameters:
eAppend- appending mode. May not benull.- Returns:
nullif resolving failed.- Since:
- 9.1.8
-
isWriteMultiple
boolean isWriteMultiple()Check if theOutputStreamfromgetOutputStream(EAppend)orgetBufferedOutputStream(EAppend)can be acquired more than once or not.- Returns:
trueif the output stream can be acquired more than once,falseif not.
-