com.mtgi.io
Class RelocatableFile
java.lang.Object
com.mtgi.io.RelocatableFile
- All Implemented Interfaces:
- Serializable
public class RelocatableFile
- extends Object
- implements Serializable
A custom data transfer class that serializes data from a local file to an ObjectOutputStream,
which is then stored in a temporary file (rather than memory) on read. Useful for returning large
files from RMI methods (e.g. JMX operations).
- See Also:
- Serialized Form
RelocatableFile
public RelocatableFile(File localPath)
getLocalFile
public File getLocalFile()
- get the local path where the file data is stored
toString
public String toString()
- return the absolute path of the local data file
- Overrides:
toString
in class Object