Package com.helger.base.io.iface
Interface IHasOutputStream
- All Known Subinterfaces:
IHasOutputStreamAndWriter
- All Known Implementing Classes:
ByteArrayOutputStreamProvider
public interface IHasOutputStream
A callback interface to retrieve
OutputStream objects.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable OutputStreamgetBufferedOutputStream(@NonNull EAppend eAppend) Get the output stream to read from the object.@Nullable OutputStreamgetOutputStream(@NonNull 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.
-