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