org.jppf.io
Class FileOutputDestination

java.lang.Object
  extended by org.jppf.io.ChannelOutputDestination
      extended by org.jppf.io.FileOutputDestination
All Implemented Interfaces:
Closeable, IO, OutputDestination

public class FileOutputDestination
extends ChannelOutputDestination

Output destination backed by a file.

Author:
Laurent Cohen

Field Summary
 
Fields inherited from class org.jppf.io.ChannelOutputDestination
channel
 
Constructor Summary
FileOutputDestination(File file)
          Initialize this file output destination with the specified file.
FileOutputDestination(String path)
          Initialize this file output destination with the specified file path.
 
Method Summary
 void close()
          Close this output destination and release any system resources associated with it.
 
Methods inherited from class org.jppf.io.ChannelOutputDestination
write, write, writeInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.