|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.util.InputStreamUtil
InputStream
用のユーティリティクラスです。
メソッドの概要 | |
static int |
available(InputStream is)
InputStream.available() の例外処理をラップしたメソッドです。 |
static void |
close(InputStream is)
InputStream を閉じます。 |
static void |
copy(InputStream is,
OutputStream os)
InputStream の内容を OutputStream にコピーします。 |
static byte[] |
getBytes(InputStream is)
InputStream からbyteの配列を取得します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
public static void close(InputStream is) throws IORuntimeException
InputStream
を閉じます。
is
-
IORuntimeException
- IOException
が発生した場合InputStream.close()
public static final byte[] getBytes(InputStream is) throws IORuntimeException
InputStream
からbyteの配列を取得します。
is
-
IORuntimeException
- IOException
が発生した場合public static final void copy(InputStream is, OutputStream os) throws IORuntimeException
InputStream
の内容を OutputStream
にコピーします。
is
- os
-
IORuntimeException
- IOException
が発生した場合public static int available(InputStream is) throws IORuntimeException
InputStream.available()
の例外処理をラップしたメソッドです。
is
-
IORuntimeException
- IOException
が発生した場合
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |