Package org.xwiki.filter.input
Class DefaultFileInputSource
- java.lang.Object
-
- org.xwiki.filter.input.AbstractInputStreamInputSource
-
- org.xwiki.filter.input.DefaultFileInputSource
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,FileInputSource
,InputSource
,InputStreamInputSource
public class DefaultFileInputSource extends AbstractInputStreamInputSource implements FileInputSource, InputStreamInputSource
- Since:
- 6.2M1
- Version:
- $Id: cb0ff313bd1a2f2b84609412e43b8d17397f7f44 $
-
-
Field Summary
-
Fields inherited from class org.xwiki.filter.input.AbstractInputStreamInputSource
inputStream
-
-
Constructor Summary
Constructors Constructor Description DefaultFileInputSource(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getFile()
protected InputStream
openStream()
-
Methods inherited from class org.xwiki.filter.input.AbstractInputStreamInputSource
close, getInputStream, restartSupported, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.xwiki.filter.input.InputSource
restartSupported
-
Methods inherited from interface org.xwiki.filter.input.InputStreamInputSource
getInputStream
-
-
-
-
Constructor Detail
-
DefaultFileInputSource
public DefaultFileInputSource(File file)
-
-
Method Detail
-
getFile
public File getFile()
- Specified by:
getFile
in interfaceFileInputSource
-
openStream
protected InputStream openStream() throws IOException
- Specified by:
openStream
in classAbstractInputStreamInputSource
- Throws:
IOException
-
-