Package org.jusecase.jte.output
Class FileOutput
- java.lang.Object
-
- org.jusecase.jte.output.FileOutput
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TemplateOutput
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()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 org.jusecase.jte.TemplateOutput
writeSafe, writeSafe, writeSafe, writeSafe, writeSafe, writeSafe, writeSafe, writeSafe, writeSafe, writeStaticContent, writeUnsafe, writeUnsafe, writeUnsafe, writeUnsafe, writeUnsafe, writeUnsafe, writeUnsafe, writeUnsafe, writeUnsafe, 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
-
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
-
-