Package org.xwiki.filter.input
Class AbstractReaderInputSource
- java.lang.Object
-
- org.xwiki.filter.input.AbstractReaderInputSource
-
- All Implemented Interfaces:
Closeable,AutoCloseable,InputSource,ReaderInputSource
- Direct Known Subclasses:
StringInputSource
public abstract class AbstractReaderInputSource extends Object implements ReaderInputSource
- Since:
- 6.2M1
- Version:
- $Id: 1347a52039b3351396f035e93b3bdbb897b08e12 $
-
-
Constructor Summary
Constructors Constructor Description AbstractReaderInputSource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()ReadergetReader()protected abstract ReaderopenReader()booleanrestartSupported()
-
-
-
Method Detail
-
restartSupported
public boolean restartSupported()
- Specified by:
restartSupportedin interfaceInputSource- Returns:
- true if it's possible to close and reset the source to its beginning
-
getReader
public Reader getReader()
- Specified by:
getReaderin interfaceReaderInputSource
-
openReader
protected abstract Reader openReader()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-