|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.freehep.application.services.jnlp.JNLPFileAccess
public class JNLPFileAccess
Implementation of FileAccess for use in unsigned JNLP applications.
| Constructor Summary | |
|---|---|
JNLPFileAccess(javax.jnlp.FileContents fc)
Creates new JNLPFileAccess |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JNLPFileAccess(javax.jnlp.FileContents fc)
| Method Detail |
|---|
public boolean canRead()
throws IOException
FileAccess
canRead in interface FileAccessIOException
public boolean canWrite()
throws IOException
FileAccess
canWrite in interface FileAccessIOException
public InputStream getInputStream()
throws IOException
FileAccess
getInputStream in interface FileAccessIOException
public OutputStream getOutputStream(boolean append)
throws IOException
FileAccess
getOutputStream in interface FileAccessIOException
public String getName()
throws IOException
FileAccess
getName in interface FileAccessIOException
public long getLength()
throws IOException
FileAccess
getLength in interface FileAccessIOException
public long getMaxLength()
throws IOException
FileAccess
getMaxLength in interface FileAccessIOException
public long setMaxLength(long length)
throws IOException
FileAccess
setMaxLength in interface FileAccessIOException
public File getFile()
throws IOException,
SecurityException
FileAccess
getFile in interface FileAccessIOException
SecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||