com.agical.rdoc.util
Class Read

java.lang.Object
  extended by com.agical.rdoc.util.Read

public class Read
extends Object

Author:
brolund (c) 2005 Agical AB

Constructor Summary
Read()
           
 
Method Summary
static String read(Class clazz, String fileName)
           
static String read(Class clazz, String fileName, String enc)
           
static InputStream readAsStream(Class clazz, String fileName)
           
static String readInputStream(String enc, InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Read

public Read()
Method Detail

readAsStream

public static InputStream readAsStream(Class clazz,
                                       String fileName)

read

public static String read(Class clazz,
                          String fileName)
                   throws IOException
Throws:
IOException

read

public static String read(Class clazz,
                          String fileName,
                          String enc)
                   throws IOException
Throws:
IOException

readInputStream

public static String readInputStream(String enc,
                                     InputStream inputStream)
                              throws UnsupportedEncodingException,
                                     IOException
Throws:
UnsupportedEncodingException
IOException


Copyright © 2005-2011 Agical AB. All Rights Reserved.