Package org.xwiki.filter.output
Class AbstractOutputStreamOutputTarget
- java.lang.Object
-
- org.xwiki.filter.output.AbstractOutputStreamOutputTarget
-
- All Implemented Interfaces:
Closeable,AutoCloseable,OutputStreamOutputTarget,OutputTarget
- Direct Known Subclasses:
ByteArrayOutputTarget,DefaultFileOutputTarget
public abstract class AbstractOutputStreamOutputTarget extends Object implements OutputStreamOutputTarget
- Since:
- 6.2M1
- Version:
- $Id: c45d9b75df7ec6db68a54080148930562bf2a8db $
-
-
Field Summary
Fields Modifier and Type Field Description protected OutputStreamoutputStream
-
Constructor Summary
Constructors Constructor Description AbstractOutputStreamOutputTarget()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()OutputStreamgetOutputStream()protected abstract OutputStreamopenStream()booleanrestartSupported()
-
-
-
Field Detail
-
outputStream
protected OutputStream outputStream
-
-
Method Detail
-
openStream
protected abstract OutputStream openStream() throws IOException
- Throws:
IOException
-
restartSupported
public boolean restartSupported()
- Specified by:
restartSupportedin interfaceOutputTarget- Returns:
- true if it's possible to close and reset the target to its beginning
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfaceOutputStreamOutputTarget- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-