org.jppf.io
Class FileOutputDestination
java.lang.Object
org.jppf.io.ChannelOutputDestination
org.jppf.io.FileOutputDestination
- All Implemented Interfaces:
- Closeable, IO, OutputDestination
public class FileOutputDestination
- extends ChannelOutputDestination
Output destination backed by a file.
- Author:
- Laurent Cohen
|
Method Summary |
void |
close()
Close this output destination 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 |
FileOutputDestination
public FileOutputDestination(String path)
throws Exception
- Initialize this file output destination with the specified file path.
- Parameters:
path - the path to the file to read from.
- Throws:
Exception - if an IO error occurs.
FileOutputDestination
public FileOutputDestination(File file)
throws Exception
- Initialize this file output destination 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 output destination and release any system resources associated with it.
- Specified by:
close in interface Closeable- Overrides:
close in class ChannelOutputDestination
- Throws:
IOException - if an IO error occurs.- See Also:
Closeable.close()
Copyright © 2005-2010 JPPF Team.