com.artenum.forceria.template
Class StringTemplateUtil

java.lang.Object
  extended by com.artenum.forceria.template.StringTemplateUtil

public final class StringTemplateUtil
extends Object


Method Summary
static String readTextFile(File file)
          read a file into a string
static Document readXml(InputStream is)
          Read XML as DOM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readXml

public static Document readXml(InputStream is)
                        throws IOException,
                               ParserConfigurationException,
                               SAXException
Read XML as DOM.

Throws:
SAXException
IOException
ParserConfigurationException

readTextFile

public static String readTextFile(File file)
                           throws IOException
read a file into a string

Parameters:
fullPathFilename -
Returns:
Throws:
IOException


Copyright © 2010-2013 Artenum. All Rights Reserved.