Constructor and Description |
---|
FileTemplate() |
FileTemplate(TemplateEngine templateEngine) |
FileTemplate(TemplateEngine templateEngine,
String templateFileName) |
FileTemplate(TemplateType templateType) |
Modifier and Type | Method and Description |
---|---|
void |
associateWith(TemplateEngine engine) |
Template |
copy() |
String |
getContents() |
String |
getName() |
File |
getPath() |
TemplateType |
getType() |
boolean |
isInMemory() |
void |
save() |
void |
setContents(String text,
boolean shouldParse) |
void |
setName(String value) |
void |
setType(TemplateType value) |
String |
toString() |
public FileTemplate()
public FileTemplate(TemplateType templateType)
public FileTemplate(TemplateEngine templateEngine)
public FileTemplate(TemplateEngine templateEngine, String templateFileName)
public String getContents() throws IOException
getContents
in interface Template
IOException
public void setContents(String text, boolean shouldParse) throws TemplateException
setContents
in interface Template
TemplateException
public void associateWith(TemplateEngine engine) throws TemplateException
associateWith
in interface Template
TemplateException
public TemplateType getType()
public void setType(TemplateType value)
public boolean isInMemory()
isInMemory
in interface Template
public void save() throws IOException
save
in interface Template
IOException
public Template copy() throws IOException
copy
in interface Template
IOException
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.