Java Reference
In-Depth Information
Gets an InputStream from the file.
long getLength()
Returns the file length.
long getMaxLength()
Returns the maximum file length for the file, as previously set by the creator of this
object.
String getName()
Returns the filename.
java.io.OutputStream getOutputStream(boolean append)
Returns an OutputStream to the file (see the java.io.OutputStream class for more
details).
JNLPRandomAccessFile getRandomAccessFile(String mode)
Returns a JNLPRandomAccessFile proxy to the file's contents.
long setMaxLength(long maxlength)
Sets the maximum file length for the file.
B
Interface FileOpenService
The FileOpenService exposes the capability to open files from the client's local disks to
launched applications.
FileContents openFileDialog(String pathHint, String[] extensions)
Asks (through the use of a dialog box) the user to choose a single file.
FileContents[] openMultiFileDialog(String pathHint, String[] extensions)
Asks the user to choose one or more files from a GUI dialog box.
Interface FileSaveService
Models the capability from launched applications to perform file modifications on the client's
local disk.
FileContents saveAsFileDialog(String pathHint, String[] extensions,
FileContents contents)
Asks the user to save a file.
FileContents saveFileDialog(String pathHint, String[] extensions,
java.io.InputStream stream, String name)
Asks the user to save a file.
Search WWH ::




Custom Search