Package org.xwiki.filter.output
Class DefaultWriterOutputTarget
- java.lang.Object
-
- org.xwiki.filter.output.DefaultWriterOutputTarget
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,OutputTarget
,WriterOutputTarget
public class DefaultWriterOutputTarget extends Object implements WriterOutputTarget
- Since:
- 6.2M1
- Version:
- $Id: 6b33f3ab5b5ff43d7ca90e252e3b5c02472296c4 $
-
-
Constructor Summary
Constructors Constructor Description DefaultWriterOutputTarget(Writer writer)
DefaultWriterOutputTarget(Writer writer, boolean close)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Writer
getWriter()
boolean
restartSupported()
String
toString()
-
-
-
Method Detail
-
restartSupported
public boolean restartSupported()
- Specified by:
restartSupported
in interfaceOutputTarget
- Returns:
- true if it's possible to close and reset the target to its beginning
-
getWriter
public Writer getWriter()
- Specified by:
getWriter
in interfaceWriterOutputTarget
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-