| Modifier and Type | Field and Description |
|---|---|
| pack-priv byte[] | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getContentType()
Implements jakarta. |
| public InputStream | getInputStream()
Implements jakarta. InputStream representing
the data and throws the appropriate exception if it can
not do so.
|
| public String | getName()
Implements jakarta. |
| public OutputStream | getOutputStream()
Implements jakarta. OutputStream where the
data can be written and throws the appropriate exception if it can
not do so.
|
| bytes | back to summary |
|---|---|
| pack-priv byte[] bytes | |
| contentType | back to summary |
|---|---|
| pack-priv String contentType | |
| ByteArrayDataSource | back to summary |
|---|---|
| public ByteArrayDataSource(byte[] data, String mimeType) | |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements jakarta. Doc from jakarta. This method returns the MIME type of the data in the form of a string. It should always return a valid type. It is suggested that getContentType return "application/octet-stream" if the DataSource implementation can not determine the data type. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() Implements jakarta. Doc from jakarta. This method returns an
| |
| getName | back to summary |
|---|---|
| public String getName() Implements jakarta. Doc from jakarta. Return the name of this object where the name of the object is dependant on the nature of the underlying objects. DataSources encapsulating files may choose to return the filename of the object. (Typically this would be the last component of the filename, not an entire pathname.) | |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() Implements jakarta. Doc from jakarta. This method returns an
| |