- java.lang.Object
-
- gg.jte.output.FileOutput
-
- All Implemented Interfaces:
TemplateOutput,Closeable,AutoCloseable
public class FileOutput extends Object implements TemplateOutput, Closeable
-
-
Constructor Summary
Constructors Constructor Description FileOutput(Path file)FileOutput(Path file, Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()WritergetWriter()voidwriteContent(String value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gg.jte.TemplateOutput
writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent
-
-
-
-
Constructor Detail
-
FileOutput
public FileOutput(Path file) throws IOException
- Throws:
IOException
-
FileOutput
public FileOutput(Path file, Charset charset) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getWriter
public Writer getWriter()
- Specified by:
getWriterin interfaceTemplateOutput
-
writeContent
public void writeContent(String value)
- Specified by:
writeContentin interfaceTemplateOutput
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-