Package org.xwiki.filter.output
Class StringWriterOutputTarget
- java.lang.Object
-
- org.xwiki.filter.output.AbstractWriterOutputTarget
-
- org.xwiki.filter.output.StringWriterOutputTarget
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,OutputTarget
,WriterOutputTarget
public class StringWriterOutputTarget extends AbstractWriterOutputTarget
- Since:
- 6.2M1
- Version:
- $Id: a0292af8a7c463a6a1b8100fff3672b9193ab34e $
-
-
Field Summary
-
Fields inherited from class org.xwiki.filter.output.AbstractWriterOutputTarget
writer
-
-
Constructor Summary
Constructors Constructor Description StringWriterOutputTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
StringBuffer
getBuffer()
Return the string buffer itself.protected Writer
openWriter()
-
Methods inherited from class org.xwiki.filter.output.AbstractWriterOutputTarget
getWriter, restartSupported, toString
-
-
-
-
Method Detail
-
getBuffer
public StringBuffer getBuffer()
Return the string buffer itself.- Returns:
- StringBuffer holding the current buffer value.
-
openWriter
protected Writer openWriter()
- Specified by:
openWriter
in classAbstractWriterOutputTarget
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classAbstractWriterOutputTarget
- Throws:
IOException
-
-