|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Encapsulates access to a File in a way which will work with unsigned java web start apps. This interface can also be used by applications.
Method Summary | |
boolean |
canRead()
Returns whether the file can be read. |
boolean |
canWrite()
Returns whether the file can be written to. |
File |
getFile()
Applications that need direct access to the underlying File can call this method, but it breaks the JNLP encapsualtion and will throw a SecurityException if used from an unsigned JNLP application. |
InputStream |
getInputStream()
Gets an InputStream from the file. |
long |
getLength()
Gets the length of the file |
long |
getMaxLength()
Gets the maximum length of this file. |
String |
getName()
Gets the file name as a string |
OutputStream |
getOutputStream(boolean append)
Gets an OutputStream to the file. |
long |
setMaxLength(long length)
Sets the maximum file length for the file. |
Method Detail |
public boolean canRead() throws IOException
IOException
public boolean canWrite() throws IOException
IOException
public InputStream getInputStream() throws IOException
IOException
public OutputStream getOutputStream(boolean append) throws IOException
IOException
public String getName() throws IOException
IOException
public long getLength() throws IOException
IOException
public long getMaxLength() throws IOException
IOException
public long setMaxLength(long length) throws IOException
IOException
public File getFile() throws IOException, SecurityException
IOException
SecurityException
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |