public static class CaptureFilter.FileWriterProvider extends Object implements CaptureFilter.WriterProvider
PrintWriter
instance based on a File
.Constructor and Description |
---|
CaptureFilter.FileWriterProvider(File file)
Construct a new
FileWriterProvider using the given file as
destination. |
CaptureFilter.FileWriterProvider(File file,
Charset charset)
Construct a new
FileWriterProvider using the given file as destination and the given Charset. |
public CaptureFilter.FileWriterProvider(File file)
FileWriterProvider
using the given file as
destination. Calling this constructor is equivalent to calling
FileWriterProvider#FileWriterProvider(java.io.File, java.nio.charset.Charset)
with UTF-8 as Charset
.file
- specify where the output will be flushed.public CaptureFilter.FileWriterProvider(File file, Charset charset)
FileWriterProvider
using the given file as destination and the given Charset.file
- specify where the output will be flushed.charset
- specify the Charset
to use.public PrintWriter getWriter() throws IOException
CaptureFilter.WriterProvider
getWriter
in interface CaptureFilter.WriterProvider
IOException
- when a writer cannot be produced.Copyright © 2014 ForgeRock AS. All rights reserved.