com.accendia.netstart.client.service
Interface FileProxy


public interface FileProxy

Implements secure application access to file properties and data. JSecureFileChooser returns file proxies upon successful user selection.


Field Summary
static long MAX_FILE_LENGTH
          The maximum file size that can be written to a local file.
 
Method Summary
 java.io.InputStream getInputStream()
          Provides secure access to the file input stream if the user selected the file for reading.
 long getLength()
          Provides secure access to the file selected by the user.
 java.lang.String getName()
          Provides secure access to the name of the file selected by the user.
 java.io.OutputStream getOutputStream()
          Provides secure access to the file output stream if the user selected the file for writing.
 

Field Detail

MAX_FILE_LENGTH

static final long MAX_FILE_LENGTH
The maximum file size that can be written to a local file.

See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Provides secure access to the name of the file selected by the user.

Returns:
The file name.

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Provides secure access to the file input stream if the user selected the file for reading.

Returns:
The InputStream for the file data or null if the file was selected for write.
Throws:
java.io.IOException - If the file selected by the user can not be opened for reading.

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Provides secure access to the file output stream if the user selected the file for writing.

Returns:
The OutputStream for the file data or null if the file was selected for read.
Throws:
java.io.IOException - If the file selected by the user can not be opened for writing.

getLength

long getLength()
Provides secure access to the file selected by the user.

Returns:
The file length.