org.nuxeo.runtime.services.streaming
Class FileSource
java.lang.Object
org.nuxeo.runtime.services.streaming.AbstractStreamSource
org.nuxeo.runtime.services.streaming.FileSource
- All Implemented Interfaces:
- StreamSource
- Direct Known Subclasses:
- UploadedStreamSource
public class FileSource
- extends AbstractStreamSource
- Author:
- Bogdan Stefanescu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
protected final File file
FileSource
public FileSource(File file)
getLength
public long getLength()
throws IOException
- Specified by:
getLength in interface StreamSource- Overrides:
getLength in class AbstractStreamSource
- Throws:
IOException
getStream
public InputStream getStream()
throws IOException
- Throws:
IOException
canReopen
public boolean canReopen()
- Specified by:
canReopen in interface StreamSource- Overrides:
canReopen in class AbstractStreamSource
getFile
public File getFile()
- Returns:
- the file.
Copyright ? 2007 Nuxeo SAS. All Rights Reserved.