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 void
close()
Reader
getReader()
protected abstract Reader
openReader()
boolean
restartSupported()
-
-
-
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
-
getReader
public Reader getReader()
- Specified by:
getReader
in interfaceReaderInputSource
-
openReader
protected abstract Reader openReader()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-