org.thymeleaf.testing.templateengine.util
Class ResourceUtils

Object
  extended by org.thymeleaf.testing.templateengine.util.ResourceUtils

public final class ResourceUtils
extends Object


Method Summary
static File createTempFile(String prefix, String suffix, String contents, String characterEncoding)
           
static String normalize(String text)
           
static String read(InputStream is, String characterEncoding)
           
static String read(InputStream is, String characterEncoding, boolean normalize)
           
static String read(Reader reader, boolean normalize)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTempFile

public static File createTempFile(String prefix,
                                  String suffix,
                                  String contents,
                                  String characterEncoding)

read

public static String read(InputStream is,
                          String characterEncoding)
                   throws UnsupportedEncodingException,
                          IOException
Throws:
UnsupportedEncodingException
IOException

read

public static String read(InputStream is,
                          String characterEncoding,
                          boolean normalize)
                   throws UnsupportedEncodingException,
                          IOException
Throws:
UnsupportedEncodingException
IOException

read

public static String read(Reader reader,
                          boolean normalize)
                   throws IOException
Throws:
IOException

normalize

public static String normalize(String text)


Copyright © 2013 The THYMELEAF team. All Rights Reserved.