java.lang.Object | |
↳ | com.priint.comet.renderer.io.ByteArrayDataSource |
Class responsible for ByteArrayDataSource
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ByteArrayDataSource()
default empty constructor
| |||||||||||
ByteArrayDataSource(String contentType, String name, byte[] data)
constructor
| |||||||||||
ByteArrayDataSource(String contentType, String name, String data)
constructor
| |||||||||||
ByteArrayDataSource(byte[] data)
constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | getContentType() | ||||||||||
byte[] | getData() | ||||||||||
InputStream | getInputStream() | ||||||||||
String | getName() | ||||||||||
OutputStream | getOutputStream() | ||||||||||
void |
setContentType(String contentType)
set the content type of the ByteArrayDataSource
| ||||||||||
void |
setData(byte[] data)
set the data for the ByteArrayDataSource
| ||||||||||
void |
setName(String name)
set the name for the ByteArrayDataSource
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
default empty constructor
constructor
contentType | type of content to be created |
---|---|
name | name of the ByteArrayDataSource to be created |
data | data provided as byte[] |
constructor
contentType | type of content to be created |
---|---|
name | name of the ByteArrayDataSource to be created |
data | data provided as String |
constructor. Content type is automatically set to "application/text". Name is set to "String"
data | data provided as byte[] to be included. |
---|
IOException |
---|
IOException |
---|
set the content type of the ByteArrayDataSource
contentType | as String |
---|
set the data for the ByteArrayDataSource
data | as byte[] |
---|
set the name for the ByteArrayDataSource
name | as String |
---|