public class LdiInputStreamUtil extends Object
InputStream用のユーティリティクラスです。| コンストラクタと説明 |
|---|
LdiInputStreamUtil() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static int |
available(InputStream is)
InputStream.available()の例外処理をラップしたメソッドです。 |
static void |
close(InputStream is)
InputStreamを閉じます。 |
static void |
closeSilently(InputStream is)
InputStreamを閉じます。 |
static void |
copy(InputStream is,
OutputStream os)
InputStreamの内容を OutputStreamにコピーします。 |
static byte[] |
getBytes(InputStream is)
InputStreamからbyteの配列を取得します。 |
static void |
reset(InputStream is)
InputStreamをリセットします。 |
public static void close(InputStream is) throws IORuntimeException
InputStreamを閉じます。is - IORuntimeException - IOExceptionが発生した場合InputStream.close()public static void closeSilently(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が発生した場合public static void reset(InputStream is) throws IORuntimeException
InputStreamをリセットします。is - IORuntimeException - IOExceptionが発生した場合InputStream.reset()Copyright © 2015 The DBFlute Project. All rights reserved.