Package org.xwiki.filter.input
Class AbstractInputStreamInputSource
- java.lang.Object
-
- org.xwiki.filter.input.AbstractInputStreamInputSource
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,InputSource
,InputStreamInputSource
- Direct Known Subclasses:
DefaultByteArrayInputSource
,DefaultFileInputSource
,DefaultURLInputSource
public abstract class AbstractInputStreamInputSource extends Object implements InputStreamInputSource
- Since:
- 6.2M1
- Version:
- $Id: 1e3aacf884a49592ae5ace56bf17f079e2760296 $
-
-
Field Summary
Fields Modifier and Type Field Description protected InputStream
inputStream
-
Constructor Summary
Constructors Constructor Description AbstractInputStreamInputSource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
InputStream
getInputStream()
protected abstract InputStream
openStream()
boolean
restartSupported()
String
toString()
-
-
-
Field Detail
-
inputStream
protected InputStream inputStream
-
-
Method Detail
-
restartSupported
public boolean restartSupported()
- Specified by:
restartSupported
in interfaceInputSource
- Returns:
- true if it's possible to close and reset the source to its beginning
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfaceInputStreamInputSource
- Throws:
IOException
-
openStream
protected abstract InputStream openStream() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-