com.mtgi.io
Class RelocatableFile

java.lang.Object
  extended by 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

Constructor Summary
RelocatableFile(File localPath)
           
 
Method Summary
 File getLocalFile()
          get the local path where the file data is stored
 String toString()
          return the absolute path of the local data file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelocatableFile

public RelocatableFile(File localPath)
Method Detail

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