Package org.jppf.io
Class FileOutputDestination
java.lang.Object
org.jppf.io.ChannelOutputDestination
org.jppf.io.FileOutputDestination
- All Implemented Interfaces:
Closeable,AutoCloseable,IO,OutputDestination
Output destination backed by a file.
- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from class org.jppf.io.ChannelOutputDestination
channelFields inherited from interface org.jppf.io.IO
CHECK_LOW_MEMORY, EMPTY_BYTES, FREE_MEM_TO_SIZE_RATIO, GC_ON_DISK_OVERFLOW, LENGTH_BUFFER_POOL, LENGTH_BUFFER_POOL_SIZE, LOW_MEMORY_THRESHOLD, SOCKET_BUFFER_SIZE, SOCKET_KEEPALIVE, SOCKET_TCP_NODELAY, TEMP_BUFFER_POOL, TEMP_BUFFER_POOL_SIZE, TEMP_BUFFER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFileOutputDestination(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
Modifier and TypeMethodDescriptionvoidclose()Close this output destination and release any system resources associated with it.Methods inherited from class org.jppf.io.ChannelOutputDestination
toString, write, write, writeInt
-
Constructor Details
-
FileOutputDestination
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
Initialize this file output destination with the specified file.- Parameters:
file- the file to read from.- Throws:
Exception- if an IO error occurs.
-
-
Method Details
-
close
Close this output destination and release any system resources associated with it.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classChannelOutputDestination- Throws:
IOException- if an IO error occurs.
-