Package org.xwiki.filter.output
Class AbstractWriterOutputTarget
- java.lang.Object
-
- org.xwiki.filter.output.AbstractWriterOutputTarget
-
- All Implemented Interfaces:
Closeable,AutoCloseable,OutputTarget,WriterOutputTarget
- Direct Known Subclasses:
StringWriterOutputTarget
public abstract class AbstractWriterOutputTarget extends Object implements WriterOutputTarget
- Since:
- 6.2M1
- Version:
- $Id: eb5ff7bff266f789b807626936d71094a405e7fc $
-
-
Constructor Summary
Constructors Constructor Description AbstractWriterOutputTarget()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()WritergetWriter()protected abstract WriteropenWriter()booleanrestartSupported()StringtoString()
-
-
-
Field Detail
-
writer
protected Writer writer
-
-
Method Detail
-
openWriter
protected abstract Writer openWriter()
-
restartSupported
public boolean restartSupported()
- Specified by:
restartSupportedin interfaceOutputTarget- Returns:
- true if it's possible to close and reset the target to its beginning
-
getWriter
public Writer getWriter()
- Specified by:
getWriterin interfaceWriterOutputTarget
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-