public class ByteArrayDataSource extends DataSource
DEFAULT_INTRO_LIMIT, MARK_WORKAROUND_PROPERTY| Constructor | Description |
|---|---|
ByteArrayDataSource(java.lang.String name,
byte[] buffer) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getName() |
Returns a name for this source.
|
java.io.InputStream |
getRawInputStream() |
Provides a new InputStream for this data source.
|
long |
getRawLength() |
Returns the length in bytes of the stream returned by
getRawInputStream, if known.
|
close, forceCompression, getCompression, getHybridInputStream, getInputStream, getInputStream, getIntro, getIntroLimit, getLength, getMarkWorkaround, getPosition, getSystemId, getURL, makeDataSource, makeDataSource, setCompression, setIntroLimit, setMarkWorkaround, setName, setPosition, toStringpublic ByteArrayDataSource(java.lang.String name,
byte[] buffer)
name - data source namebuffer - containing byte content of the sourcepublic java.lang.String getName()
DataSourceDataSource.getURL() method
(or some suitable class-specific method) should be used.
If this source has a position, it should probably form part of
this name.getName in class DataSourcepublic java.io.InputStream getRawInputStream()
DataSourcegetRawInputStream in class DataSourcepublic long getRawLength()
DataSourcegetRawLength in class DataSourceCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.