net.metanotion.io.gui
Class FSFileContents

java.lang.Object
  extended by net.metanotion.io.gui.FSFileContents

public final class FSFileContents
extends Object

Implementation of the JNLP FileContents interface to support using a FileSystem in a JNLP context.


Constructor Summary
FSFileContents(File f)
           
FSFileContents(File f, long maxLen, boolean changeable)
           
 
Method Summary
 boolean canRead()
           
 boolean canWrite()
           
 InputStream getInputStream()
           
 long getLength()
           
 long getMaxLength()
           
 String getName()
           
 OutputStream getOutputStream(boolean overwrite)
           
 JNLPRandomAccessFile getRandomAccessFile(String mode)
           
 long setMaxLength(long maxlength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSFileContents

public FSFileContents(File f)

FSFileContents

public FSFileContents(File f,
                      long maxLen,
                      boolean changeable)
Method Detail

canRead

public boolean canRead()

canWrite

public boolean canWrite()

getInputStream

public InputStream getInputStream()

getOutputStream

public OutputStream getOutputStream(boolean overwrite)

getLength

public long getLength()

getMaxLength

public long getMaxLength()

getName

public String getName()

getRandomAccessFile

public JNLPRandomAccessFile getRandomAccessFile(String mode)

setMaxLength

public long setMaxLength(long maxlength)