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:
- DefaultBinaryManager.ScrambledStreamSource, UploadedStreamSource
public class FileSource
- extends AbstractStreamSource
- Author:
- Bogdan Stefanescu
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()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.