Package org.xwiki.filter.output
Class ByteArrayOutputTarget
- java.lang.Object
-
- org.xwiki.filter.output.AbstractOutputStreamOutputTarget
-
- org.xwiki.filter.output.ByteArrayOutputTarget
-
- All Implemented Interfaces:
Closeable,AutoCloseable,OutputStreamOutputTarget,OutputTarget
public class ByteArrayOutputTarget extends AbstractOutputStreamOutputTarget
- Since:
- 6.2M1
- Version:
- $Id: 09089b4bbe3c68d5ff74ffb51eb9064c9255108b $
-
-
Field Summary
-
Fields inherited from class org.xwiki.filter.output.AbstractOutputStreamOutputTarget
outputStream
-
-
Constructor Summary
Constructors Constructor Description ByteArrayOutputTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected OutputStreamopenStream()byte[]toByteArray()-
Methods inherited from class org.xwiki.filter.output.AbstractOutputStreamOutputTarget
getOutputStream, restartSupported
-
-
-
-
Method Detail
-
openStream
protected OutputStream openStream() throws IOException
- Specified by:
openStreamin classAbstractOutputStreamOutputTarget- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classAbstractOutputStreamOutputTarget- Throws:
IOException
-
toByteArray
public byte[] toByteArray()
-
-