org.xwiki.wikistream.input
Interface InputSource
- All Superinterfaces:
- Closeable
- All Known Subinterfaces:
- FileInputSource, InputStreamInputSource, ReaderInputSource, URLInputSource
@Unstable
public interface InputSource
- extends Closeable
Represent a source of data used by a wiki stream input stream. What kind of InputSource is supported by each
input stream is entirely input stream choice.
#clone() is only closing Closeable created by the InputSource itself. For example
DefaultInputStreamInputSource is not going to close the InputStream passed to its constructor
because it did not created it.
- Since:
- 5.2M2
- Version:
- $Id: a4c45cddfdf596cde755a52da9dbf90165135a44 $
restartSupported
boolean restartSupported()
- Returns:
- true if it's possible to close and reset the source to its beginning
- Since:
- 5.2RC1
Copyright © 2004–2014 XWiki. All rights reserved.