| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private int | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | ByteArrayDataSource(InputStream
the InputStream is, String the MIME type type)Create a ByteArrayDataSource with data from the specified InputStream and with the specified MIME type. |
| public | ByteArrayDataSource(byte[]
the data data, String the MIME type type)Create a ByteArrayDataSource with data from the specified byte array and with the specified MIME type. |
| public | ByteArrayDataSource(String
the String data, String the MIME type type)Create a ByteArrayDataSource with data from the specified String and with the specified MIME type. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the MIME typeImplements javax. |
| public InputStream | Returns: the InputStreamImplements javax. |
| public String | Returns: the name of this dataImplements javax. |
| public OutputStream | getOutputStream()
Implements javax. |
| public void |
| data | back to summary |
|---|---|
| private byte[] data | |
| len | back to summary |
|---|---|
| private int len | |
| name | back to summary |
|---|---|
| private String name | |
| type | back to summary |
|---|---|
| private String type | |
| ByteArrayDataSource | back to summary |
|---|---|
| public ByteArrayDataSource(InputStream is, String type) throws IOException Create a ByteArrayDataSource with data from the specified InputStream and with the specified MIME type. The InputStream is read completely and the data is stored in a byte array.
| |
| ByteArrayDataSource | back to summary |
|---|---|
| public ByteArrayDataSource(byte[] data, String type) Create a ByteArrayDataSource with data from the specified byte array and with the specified MIME type.
| |
| ByteArrayDataSource | back to summary |
|---|---|
| public ByteArrayDataSource(String data, String type) throws IOException Create a ByteArrayDataSource with data from the
specified String and with the specified MIME type.
The MIME type should include a
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements javax. Get the MIME content type of the data. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Implements javax. Return an InputStream for the data. Note that a new stream is returned each time this method is called.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements javax. Get the name of the data. By default, an empty string ("") is returned. | |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException Implements javax. Return an OutputStream for the data.
Writing the data is not supported; an
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Set the name of the data.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public int |
| DSByteArrayOutputStream | back to summary |
|---|---|
| pack-priv DSByteArrayOutputStream() | |
| getBuf | back to summary |
|---|---|
| public byte[] getBuf() | |
| getCount | back to summary |
|---|---|
| public int getCount() | |