org.jboss.seam.xml.util
Class FileDataReader

java.lang.Object
  extended by org.jboss.seam.xml.util.FileDataReader

public class FileDataReader
extends Object

Utility class that reads a file or URL into a String

Author:
Stuart Douglas

Constructor Summary
FileDataReader()
           
 
Method Summary
static String readFile(InputStream file)
           
static String readUrl(URL u)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDataReader

public FileDataReader()
Method Detail

readUrl

public static String readUrl(URL u)
                      throws IOException
Throws:
IOException

readFile

public static String readFile(InputStream file)
                       throws IOException
Throws:
IOException


Copyright © 2010 Seam Framework. All Rights Reserved.