public class ByteArrayOutputStreamProvider extends Object implements IHasOutputStreamAndWriter, Serializable
OutputStream provider based on a byte array.| Constructor and Description |
|---|
ByteArrayOutputStreamProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsString(Charset aCharset) |
byte[] |
getBytes() |
NonBlockingByteArrayOutputStream |
getOutputStream(EAppend eAppend)
Get the output stream to read from the object.
|
boolean |
isWriteMultiple()
Check if the
OutputStream from IHasOutputStream.getOutputStream(EAppend) or
IHasOutputStream.getBufferedOutputStream(EAppend) can be acquired more than once or
not. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBufferedWriter, getWritergetBufferedOutputStream@Nonnull public final NonBlockingByteArrayOutputStream getOutputStream(@Nonnull EAppend eAppend)
IHasOutputStreamOutputStream needs to be created!getOutputStream in interface IHasOutputStreameAppend - appending mode. May not be null.null if resolving failed.public final boolean isWriteMultiple()
IHasOutputStreamOutputStream from IHasOutputStream.getOutputStream(EAppend) or
IHasOutputStream.getBufferedOutputStream(EAppend) can be acquired more than once or
not.isWriteMultiple in interface IHasOutputStreamtrue if the output stream can be acquired more than
once, false if not.@Nonnull @ReturnsMutableCopy public final byte[] getBytes()
Copyright © 2014–2019 Philip Helger. All rights reserved.