Package org.xwiki.filter.input
Class DefaultReaderInputSource
- java.lang.Object
-
- org.xwiki.filter.input.DefaultReaderInputSource
-
- All Implemented Interfaces:
Closeable,AutoCloseable,InputSource,ReaderInputSource
public class DefaultReaderInputSource extends Object implements ReaderInputSource
- Since:
- 6.2M1
- Version:
- $Id: 7ebc06558d010e601be594b52cffabe16c369e1d $
-
-
Constructor Summary
Constructors Constructor Description DefaultReaderInputSource(Reader reader)DefaultReaderInputSource(Reader reader, boolean close)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ReadergetReader()booleanrestartSupported()StringtoString()
-
-
-
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
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-