public class FileSource extends AbstractStreamSource
| Constructor and Description |
|---|
FileSource(File file) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReopen() |
File |
getFile() |
long |
getLength() |
InputStream |
getStream() |
void |
setFile(File file) |
copyTo, copyTo, destroy, getBytes, getCharsetName, getString, setCharsetNamepublic FileSource(File file)
public long getLength()
throws IOException
getLength in interface StreamSourcegetLength in class AbstractStreamSourceIOExceptionpublic InputStream getStream() throws IOException
IOExceptionpublic boolean canReopen()
canReopen in interface StreamSourcecanReopen in class AbstractStreamSourcepublic File getFile()
public void setFile(File file)
Copyright © 2014 Nuxeo SA. All rights reserved.