|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.sourceforge.livez.mail.util.ByteArrayDataSource
public final class ByteArrayDataSource
任意のバイナリデータ及びテキストデータを表現する DataSource です。 charset パラメタに対応しています。
| コンストラクタの概要 | |
|---|---|
ByteArrayDataSource(byte[] data,
String contentType)
推奨されていません。 バイナリデータのデータソースを生成するコンストラクタです。 |
|
ByteArrayDataSource(InputStream in,
String contentType)
推奨されていません。 バイナリデータのデータソースを生成するコンストラクタです。 |
|
ByteArrayDataSource(Reader in,
String contentType)
推奨されていません。 文字ストリームから text/* 用のデータソースを生成するコンストラクタです。 |
|
ByteArrayDataSource(String text,
String contentType)
推奨されていません。 文字ストリームから text/* 用のデータソースを生成するコンストラクタです。 |
|
| メソッドの概要 | |
|---|---|
String |
getContentType()
推奨されていません。 |
InputStream |
getInputStream()
推奨されていません。 |
String |
getName()
推奨されていません。 この実装では必ず null を返します。 |
OutputStream |
getOutputStream()
推奨されていません。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public ByteArrayDataSource(byte[] data,
String contentType)
data - バイナリデータcontentType - コンテンツタイプ
public ByteArrayDataSource(InputStream in,
String contentType)
throws IOException
in - 入力ストリームcontentType - コンテンツタイプ
IOException - 入出力例外が発生した場合
public ByteArrayDataSource(Reader in,
String contentType)
throws IOException
in - 入力contentType - コンテンツタイプ
IOException - 入出力例外が発生した場合
public ByteArrayDataSource(String text,
String contentType)
text - テキストcontentType - コンテンツタイプ| メソッドの詳細 |
|---|
public String getContentType()
DataSource
public InputStream getInputStream()
throws IOException
IOExceptionDataSourcepublic String getName()
null を返します。
DataSource
public OutputStream getOutputStream()
throws IOException
IOExceptionDataSource
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||