org.mtzky.io
クラス IOUtils

java.lang.Object
  上位を拡張 org.mtzky.io.IOUtils

public class IOUtils
extends java.lang.Object

I/O utilities.

作成者:
mtzky
関連項目:
Closable, Closeable

メソッドの概要
static void closeQuietly(Closable closable)
           Unconditionally close a Closable.
static void closeQuietly(java.io.Closeable closaable)
           Unconditionally close a Closeable.
static java.io.PushbackReader toPushbackReader(java.io.Reader reader)
           Returns Reader wrapped by PushbackReader.
static java.lang.String trapSysOut(java.lang.Runnable runnable)
          

引数の Runnable 実行中の System.outString として返します。

 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

closeQuietly

public static void closeQuietly(Closable closable)

Unconditionally close a Closable.

Logs warning message to Logger if IOException occurred.

パラメータ:
closable -

closeQuietly

public static void closeQuietly(java.io.Closeable closaable)

Unconditionally close a Closeable.

Logs warning message to Logger if IOException occurred.

パラメータ:
closaable -

trapSysOut

public static java.lang.String trapSysOut(java.lang.Runnable runnable)
                                   throws java.lang.Throwable

引数の Runnable 実行中の System.outString として返します。

パラメータ:
runnable -
戻り値:
System.out as String
例外:
java.lang.Throwable

toPushbackReader

public static java.io.PushbackReader toPushbackReader(java.io.Reader reader)

Returns Reader wrapped by PushbackReader.

パラメータ:
reader -
戻り値:
PushbackReader
導入されたバージョン:
0.1.2


Copyright (C) 2010-2011 Mtzky. AllRights Reserved.