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 OutputStream
outputStream
-
Constructor Summary
Constructors Constructor Description AbstractOutputStreamOutputTarget()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
OutputStream
getOutputStream()
protected abstract OutputStream
openStream()
boolean
restartSupported()
-
-
-
Field Detail
-
outputStream
protected OutputStream outputStream
-
-
Method Detail
-
openStream
protected abstract OutputStream openStream() throws IOException
- Throws:
IOException
-
restartSupported
public boolean restartSupported()
- Specified by:
restartSupported
in interfaceOutputTarget
- Returns:
- true if it's possible to close and reset the target to its beginning
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in interfaceOutputStreamOutputTarget
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-