public class ByteArrayInputStreamProvider extends Object implements IInputStreamAndReaderProvider, Serializable
InputStream provider based on a byte array.| Constructor and Description |
|---|
ByteArrayInputStreamProvider(byte[] aData) |
ByteArrayInputStreamProvider(byte[] aData,
int nOfs,
int nLen) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Get the input stream to read from the object.
|
Reader |
getReader(Charset aCharset)
Get an
Reader based on this input stream provider using the given
charset. |
Reader |
getReader(String sCharset)
Deprecated.
|
String |
toString() |
public ByteArrayInputStreamProvider(@Nonnull byte[] aData)
public ByteArrayInputStreamProvider(@Nonnull byte[] aData, @Nonnegative int nOfs, @Nonnegative int nLen)
@Nonnull public final InputStream getInputStream()
IInputStreamProviderInputStream needs to be created!getInputStream in interface IInputStreamProvidernull if resolving failed.@Nonnull @Deprecated public final Reader getReader(@Nonnull String sCharset)
IInputStreamAndReaderProviderReader based on this input stream provider using the given
charset.getReader in interface IInputStreamAndReaderProvidersCharset - The charset to use. May not be null.null if no input stream could be retrieved.@Nonnull public final Reader getReader(@Nonnull Charset aCharset)
IInputStreamAndReaderProviderReader based on this input stream provider using the given
charset.getReader in interface IInputStreamAndReaderProvideraCharset - The charset to use. May not be null.null if no input stream could be retrieved.Copyright © 2006–2015 phloc systems. All rights reserved.