public class ByteArrayOutputStreamProvider extends Object implements IOutputStreamAndWriterProvider, Serializable
OutputStream provider based on a byte array.| Constructor and Description |
|---|
ByteArrayOutputStreamProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsString(Charset aCharset) |
String |
getAsString(String sCharset)
Deprecated.
|
byte[] |
getBytes() |
NonBlockingByteArrayOutputStream |
getOutputStream(EAppend eAppend)
Get the output stream to read from the object.
|
OutputStreamWriter |
getWriter(Charset aCharset,
EAppend eAppend)
Get an
Writer based on this output stream provider using the given
charset. |
OutputStreamWriter |
getWriter(String sCharset,
EAppend eAppend)
Deprecated.
|
String |
toString()
Deprecated.
|
@Nonnull public final NonBlockingByteArrayOutputStream getOutputStream(@Nonnull EAppend eAppend)
IOutputStreamProviderOutputStream needs to be created!getOutputStream in interface IOutputStreamProvidereAppend - appending mode. May not be null.null if resolving failed.@Nonnull @Deprecated public final OutputStreamWriter getWriter(@Nonnull String sCharset, @Nonnull EAppend eAppend)
IOutputStreamAndWriterProviderWriter based on this output stream provider using the given
charset.getWriter in interface IOutputStreamAndWriterProvidersCharset - The charset to use. May not be null.eAppend - Appending mode. May not be null.null if no output stream could be retrieved.@Nonnull public final OutputStreamWriter getWriter(@Nonnull Charset aCharset, @Nonnull EAppend eAppend)
IOutputStreamAndWriterProviderWriter based on this output stream provider using the given
charset.getWriter in interface IOutputStreamAndWriterProvideraCharset - The charset to use. May not be null.eAppend - Appending mode. May not be null.null if no output stream could be retrieved.@Nonnull @ReturnsMutableCopy public byte[] getBytes()
@Nonnull @Deprecated public String getAsString(@Nonnull String sCharset)
@Deprecated @DevelopersNote(value="Most probably you wanted to call getAsString") public String toString()
Copyright © 2006–2015 phloc systems. All rights reserved.