org.jppf.io
Class FileInputSource
java.lang.Object
org.jppf.io.ChannelInputSource
org.jppf.io.FileInputSource
- All Implemented Interfaces:
- Closeable, InputSource, IO
public class FileInputSource
- extends ChannelInputSource
Input source backed by a file.
- Author:
- Laurent Cohen
|
Method Summary |
void |
close()
Close this input source and release any system resources associated with it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileInputSource
public FileInputSource(String path)
throws Exception
- Initialize this file input source with the specified file path.
- Parameters:
path - the path to the file to read from.
- Throws:
Exception - if an IO error occurs.
FileInputSource
public FileInputSource(File file)
throws Exception
- Initialize this file input source with the specified file.
- Parameters:
file - the file to read from.
- Throws:
Exception - if an IO error occurs.
close
public void close()
throws IOException
- Close this input source and release any system resources associated with it.
- Specified by:
close in interface Closeable- Overrides:
close in class ChannelInputSource
- Throws:
IOException - if an IO error occurs.- See Also:
Closeable.close()
Copyright © 2005-2010 JPPF Team.