org.thymeleaf.testing.templateengine.resource
Class LocalFileTestResource

Object
  extended by org.thymeleaf.testing.templateengine.resource.AbstractTestResource
      extended by org.thymeleaf.testing.templateengine.resource.LocalFileTestResource
All Implemented Interfaces:
ILocalTestResource, ITestResource, ITestResourceItem

public class LocalFileTestResource
extends AbstractTestResource
implements ITestResourceItem, ILocalTestResource


Constructor Summary
LocalFileTestResource(File file, String characterEncoding)
           
 
Method Summary
 String getCharacterEncoding()
           
 File getResourceFile()
           
 String readAsText()
           
 
Methods inherited from class org.thymeleaf.testing.templateengine.resource.AbstractTestResource
getName
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.thymeleaf.testing.templateengine.resource.ITestResource
getName
 

Constructor Detail

LocalFileTestResource

public LocalFileTestResource(File file,
                             String characterEncoding)
Method Detail

getResourceFile

public File getResourceFile()
Specified by:
getResourceFile in interface ILocalTestResource

getCharacterEncoding

public String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface ILocalTestResource

readAsText

public String readAsText()
Specified by:
readAsText in interface ITestResourceItem


Copyright © 2013 The THYMELEAF team. All Rights Reserved.