proactor.server
Class FileReadOperation

java.lang.Object
  extended by proactor.server.FileReadOperation
All Implemented Interfaces:
AsynchronousOperation

public class FileReadOperation
extends java.lang.Object
implements AsynchronousOperation


Constructor Summary
FileReadOperation(java.io.File file)
          Constructor.
FileReadOperation(java.lang.String fileName)
          Constructor.
FileReadOperation(java.net.URI uri)
          Constructor.
 
Method Summary
 void execute()
          Execute the operation.
 java.lang.Object getResult()
          Return the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileReadOperation

public FileReadOperation(java.io.File file)
Constructor.

Parameters:
file -

FileReadOperation

public FileReadOperation(java.lang.String fileName)
Constructor.

Parameters:
fileName -

FileReadOperation

public FileReadOperation(java.net.URI uri)
Constructor.

Parameters:
uri -
Method Detail

execute

public void execute()
Execute the operation. Just read the specified file and store the result in a field.

Specified by:
execute in interface AsynchronousOperation

getResult

public java.lang.Object getResult()
Return the result. Should be called after the operation executed.

Specified by:
getResult in interface AsynchronousOperation
Returns:
The result object.