Package com.helger.commons.io
Interface IHasOutputStreamAndWriter
-
- All Superinterfaces:
IHasOutputStream
- All Known Subinterfaces:
IReadWriteResource,IWrappedWritableResource,IWritableResource
- All Known Implementing Classes:
AbstractWrappedWritableResource,ByteArrayOutputStreamProvider,FileSystemResource,GZIPWritableResource
public interface IHasOutputStreamAndWriter extends IHasOutputStream
A callback interface to retrieveWriterobjects based on InputStreams.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default WritergetBufferedWriter(Charset aCharset, EAppend eAppend)Get a bufferedWriterbased on this output stream provider using the given charset.default WritergetWriter(Charset aCharset, EAppend eAppend)Get aWriterbased on this output stream provider using the given charset.-
Methods inherited from interface com.helger.commons.io.IHasOutputStream
getBufferedOutputStream, getOutputStream, isWriteMultiple
-
-
-
-
Method Detail
-
getWriter
@Nullable default Writer getWriter(@Nonnull Charset aCharset, @Nonnull EAppend eAppend)
Get aWriterbased on this output stream provider using the given charset.- Parameters:
aCharset- The charset to use. May not benull.eAppend- Appending mode. May not benull.- Returns:
nullif no output stream could be retrieved.
-
getBufferedWriter
@Nullable default Writer getBufferedWriter(@Nonnull Charset aCharset, @Nonnull EAppend eAppend)
Get a bufferedWriterbased on this output stream provider using the given charset.- Parameters:
aCharset- The charset to use. May not benull.eAppend- Appending mode. May not benull.- Returns:
nullif no output stream could be retrieved.- Since:
- 9.1.8
-
-