net.charlesames.utility.io
Class PrivilegedTextReader

java.lang.Object
  extended by net.charlesames.utility.io.PrivilegedTextReader
All Implemented Interfaces:
java.security.PrivilegedAction<java.lang.String>

public class PrivilegedTextReader
extends java.lang.Object
implements java.security.PrivilegedAction<java.lang.String>

Reads a text string from a file in a privileged context.

Author:
Charles Ames

Constructor Summary
PrivilegedTextReader()
           
 
Method Summary
 java.lang.String run()
           
 void setFile(java.io.File file)
          Set the file from which the data is to be read.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrivilegedTextReader

public PrivilegedTextReader()
Method Detail

setFile

public void setFile(java.io.File file)
Set the file from which the data is to be read.

Parameters:
file - The file from which the data is to be read.

run

public java.lang.String run()
Specified by:
run in interface java.security.PrivilegedAction<java.lang.String>