Purpose: Provides an implementation of Source that can act on a byte[]. Overrides the getInputStream and getReader methods to ensure a new stream is created each time (to prevent the one use restriction of StreamSource).
| Modifier and Type | Field and Description |
|---|---|
| private ByteArrayDataSource |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | getInputStream()
Overrides javax. |
| public Reader | getReader()
Overrides javax. |
| source | back to summary |
|---|---|
| private ByteArrayDataSource source | |
| ByteArraySource | back to summary |
|---|---|
| public ByteArraySource(byte[] bytes) | |
| ByteArraySource | back to summary |
|---|---|
| public ByteArraySource(byte[] bytes, String mimeType) | |
| ByteArraySource | back to summary |
|---|---|
| public ByteArraySource(ByteArrayDataSource dataSource) | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() Overrides javax. Doc from javax. Get the byte stream that was set with setByteStream.
| |
| getReader | back to summary |
|---|---|
| public Reader getReader() Overrides javax. Doc from javax. Get the character stream that was set with setReader. | |