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 void
close()
Writer
getWriter()
protected abstract Writer
openWriter()
boolean
restartSupported()
String
toString()
-
-
-
Field Detail
-
writer
protected Writer writer
-
-
Method Detail
-
openWriter
protected abstract Writer openWriter()
-
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
-
-