Package com.helger.base.io.iface
Interface IHasOutputStreamAndWriter
- All Superinterfaces:
IHasOutputStream
- All Known Implementing Classes:
ByteArrayOutputStreamProvider
A callback interface to retrieve
Writer objects based on
InputStreams.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable WritergetBufferedWriter(@NonNull Charset aCharset, @NonNull EAppend eAppend) Get a bufferedWriterbased on this output stream provider using the given charset.default @Nullable WriterGet aWriterbased on this output stream provider using the given charset.Methods inherited from interface com.helger.base.io.iface.IHasOutputStream
getBufferedOutputStream, getOutputStream, isWriteMultiple
-
Method Details
-
getWriter
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
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
-