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 void
close()
protected OutputStream
openStream()
byte[]
toByteArray()
-
Methods inherited from class org.xwiki.filter.output.AbstractOutputStreamOutputTarget
getOutputStream, restartSupported
-
-
-
-
Method Detail
-
openStream
protected OutputStream openStream() throws IOException
- Specified by:
openStream
in classAbstractOutputStreamOutputTarget
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classAbstractOutputStreamOutputTarget
- Throws:
IOException
-
toByteArray
public byte[] toByteArray()
-
-