程序包 com.sh.mail.core
类 ByteArrayDataSource
java.lang.Object
com.sh.mail.core.ByteArrayDataSource
- 所有已实现的接口:
jakarta.activation.DataSource
Description: This class implements a typed DataSource from:
- an InputStream
- a byte array
- a String
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 13, 2012
-
字段概要
字段 -
构造器概要
构造器构造器说明ByteArrayDataSource(byte[] data, String aType) Create a datasource from a byte array.ByteArrayDataSource(InputStream aIs, String aType) Create a datasource from an input stream.ByteArrayDataSource(String data, String aType) Create a datasource from a String. -
方法概要
修饰符和类型方法说明Get the content type.Get the input stream.getName()Get the name.Get the OutputStream to write to
-
字段详细资料
-
BUFFER_SIZE
public static final int BUFFER_SIZEdefine the buffer size- 另请参阅:
-
-
构造器详细资料
-
ByteArrayDataSource
Create a datasource from a byte array.- 参数:
data- A byte[].aType- A String.- 抛出:
IOException- IOException- 从以下版本开始:
- 1.0
-
ByteArrayDataSource
Create a datasource from an input stream.- 参数:
aIs- An InputStream.aType- A String.- 抛出:
IOException- IOException- 从以下版本开始:
- 1.0
-
ByteArrayDataSource
Create a datasource from a String.- 参数:
data- A String.aType- A String.- 抛出:
IOException- IOException- 从以下版本开始:
- 1.0
-
-
方法详细资料
-
getContentType
Get the content type.- 指定者:
getContentType在接口中jakarta.activation.DataSource- 返回:
- A String.
- 从以下版本开始:
- 1.0
-
getInputStream
Get the input stream.- 指定者:
getInputStream在接口中jakarta.activation.DataSource- 返回:
- An InputStream.
- 抛出:
IOException- IOException- 从以下版本开始:
- 1.0
-
getName
Get the name.- 指定者:
getName在接口中jakarta.activation.DataSource- 返回:
- A String.
- 从以下版本开始:
- 1.0
-
getOutputStream
Get the OutputStream to write to- 指定者:
getOutputStream在接口中jakarta.activation.DataSource- 返回:
- An OutputStream
- 从以下版本开始:
- 1.0
-