jp.co.ogis_ri.citk.policytool.common.util
クラス StreamUtil

java.lang.Object
  上位を拡張 jp.co.ogis_ri.citk.policytool.common.util.StreamUtil

public class StreamUtil
extends Object

ストリーム関連のユーティリティクラス.


メソッドの概要
static byte[] toByteArray(InputStream inputStream)
          指定された InputStream を読み込み、バイト配列に変換する.
static String toString(InputStream inputStream)
          指定された InputStream を読み込み、文字列に変換する.
static List<String> toTextLine(InputStream inputStream)
          指定された InputStream を読み込み、 行ごとにリストに格納する.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

toTextLine

public static List<String> toTextLine(InputStream inputStream)
指定された InputStream を読み込み、 行ごとにリストに格納する.

パラメータ:
inputStream - 読み込む InputStream.
戻り値:
変換後のリスト.

toString

public static String toString(InputStream inputStream)
指定された InputStream を読み込み、文字列に変換する.

パラメータ:
inputStream - 読み込む InputStream.
戻り値:
変換後の文字列.

toByteArray

public static byte[] toByteArray(InputStream inputStream)
指定された InputStream を読み込み、バイト配列に変換する.

パラメータ:
inputStream - 読み込む InputStream.
戻り値:
変換後のバイト配列.


Copyright © 2011-2012 OGIS-RI Co.,Ltd.. All Rights Reserved.