Package org.xwiki.filter.input
Class DefaultInputStreamInputSource
- java.lang.Object
-
- org.xwiki.filter.input.DefaultInputStreamInputSource
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,InputSource
,InputStreamInputSource
public class DefaultInputStreamInputSource extends Object implements InputStreamInputSource
- Since:
- 6.2M1
- Version:
- $Id: 7b135656e53840b1d12025b5397a4ac9bcf18dd1 $
-
-
Constructor Summary
Constructors Constructor Description DefaultInputStreamInputSource(InputStream inputStream)
DefaultInputStreamInputSource(InputStream inputStream, boolean close)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
InputStream
getInputStream()
boolean
restartSupported()
String
toString()
-
-
-
Constructor Detail
-
DefaultInputStreamInputSource
public DefaultInputStreamInputSource(InputStream inputStream)
-
DefaultInputStreamInputSource
public DefaultInputStreamInputSource(InputStream inputStream, boolean close)
-
-
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
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream
in interfaceInputStreamInputSource
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-