Homepage

netx.jnlp.services
Class XFileContents

java.lang.Object
  |
  +--netx.jnlp.services.XFileContents
All Implemented Interfaces:
javax.jnlp.FileContents

class XFileContents
extends java.lang.Object
implements javax.jnlp.FileContents

File contents.

Version:
$Revision: 1.6 $
Author:
Jon A. Maxwell (JAM) - initial author

Constructor Summary
protected XFileContents(java.io.File file)
          Create a file contents implementation for the file.
 
Method Summary
 boolean canRead()
           
 boolean canWrite()
           
 java.io.InputStream getInputStream()
           
 long getLength()
           
 long getMaxLength()
           
 java.lang.String getName()
           
 java.io.OutputStream getOutputStream(boolean overwrite)
           
 javax.jnlp.JNLPRandomAccessFile getRandomAccessFile(java.lang.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

XFileContents

protected XFileContents(java.io.File file)
Create a file contents implementation for the file.

Method Detail

canRead

public boolean canRead()
                throws java.io.IOException
Specified by:
canRead in interface javax.jnlp.FileContents
Throws:
java.io.IOException - if an I/O exception occurs.

canWrite

public boolean canWrite()
                 throws java.io.IOException
Specified by:
canWrite in interface javax.jnlp.FileContents
Throws:
java.io.IOException - if an I/O exception occurs.

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface javax.jnlp.FileContents
Throws:
java.io.IOException - if an I/O exception occurs.

getLength

public long getLength()
               throws java.io.IOException
Specified by:
getLength in interface javax.jnlp.FileContents
Throws:
java.io.IOException - if an I/O exception occurs.

getMaxLength

public long getMaxLength()
                  throws java.io.IOException
Specified by:
getMaxLength in interface javax.jnlp.FileContents
Throws:
java.io.IOException - if an I/O exception occurs.

getName

public java.lang.String getName()
                         throws java.io.IOException
Specified by:
getName in interface javax.jnlp.FileContents
Throws:
java.io.IOException - if an I/O exception occurs.

getOutputStream

public java.io.OutputStream getOutputStream(boolean overwrite)
                                     throws java.io.IOException
Specified by:
getOutputStream in interface javax.jnlp.FileContents
Throws:
java.io.IOException - if an I/O exception occurs.

getRandomAccessFile

public javax.jnlp.JNLPRandomAccessFile getRandomAccessFile(java.lang.String mode)
                                                    throws java.io.IOException
Specified by:
getRandomAccessFile in interface javax.jnlp.FileContents
Throws:
java.io.IOException - if an I/O exception occurs.

setMaxLength

public long setMaxLength(long maxlength)
                  throws java.io.IOException
Specified by:
setMaxLength in interface javax.jnlp.FileContents
Throws:
java.io.IOException - if an I/O exception occurs.

Homepage