Package gg.jte.output
Class FileOutput
- java.lang.Object
-
- gg.jte.output.FileOutput
-
- All Implemented Interfaces:
TemplateOutput,java.io.Closeable,java.lang.AutoCloseable
public class FileOutput extends java.lang.Object implements TemplateOutput, java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description FileOutput(java.nio.file.Path file)FileOutput(java.nio.file.Path file, java.nio.charset.Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.WritergetWriter()voidwriteContent(java.lang.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
writeBinaryContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent, writeUserContent
-
-
-
-
Method Detail
-
getWriter
public java.io.Writer getWriter()
- Specified by:
getWriterin interfaceTemplateOutput
-
writeContent
public void writeContent(java.lang.String value)
- Specified by:
writeContentin interfaceTemplateOutput
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-