Package com.helger.commons.io
Interface IHasOutputStream
-
- All Known Subinterfaces:
IHasOutputStreamAndWriter,IReadWriteResource,IWrappedWritableResource,IWritableResource
- All Known Implementing Classes:
AbstractWrappedWritableResource,ByteArrayOutputStreamProvider,FileSystemResource,GZIPWritableResource
public interface IHasOutputStreamA callback interface to retrieveOutputStreamobjects.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default OutputStreamgetBufferedOutputStream(EAppend eAppend)Get the output stream to read from the object.OutputStreamgetOutputStream(EAppend eAppend)Get the output stream to read from the object.booleanisWriteMultiple()Check if theOutputStreamfromgetOutputStream(EAppend)orgetBufferedOutputStream(EAppend)can be acquired more than once or not.
-
-
-
Method Detail
-
getOutputStream
@Nullable OutputStream getOutputStream(@Nonnull EAppend eAppend)
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
@Nullable default OutputStream getBufferedOutputStream(@Nonnull EAppend eAppend)
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.
-
-