netx.jnlp.services

Class XFileContents

Implemented Interfaces:
javax.jnlp.FileContents

(package private) 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

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

Method Summary

boolean
canRead()
boolean
canWrite()
InputStream
getInputStream()
long
getLength()
long
getMaxLength()
String
getName()
OutputStream
getOutputStream(boolean overwrite)
javax.jnlp.JNLPRandomAccessFile
getRandomAccessFile(String mode)
long
setMaxLength(long maxlength)

Constructor Details

XFileContents

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

Method Details

canRead

public boolean canRead()
            throws IOException

canWrite

public boolean canWrite()
            throws IOException

getInputStream

public InputStream getInputStream()
            throws IOException

getLength

public long getLength()
            throws IOException

getMaxLength

public long getMaxLength()
            throws IOException

getName

public String getName()
            throws IOException

getOutputStream

public OutputStream getOutputStream(boolean overwrite)
            throws IOException

getRandomAccessFile

public javax.jnlp.JNLPRandomAccessFile getRandomAccessFile(String mode)
            throws IOException

setMaxLength

public long setMaxLength(long maxlength)
            throws IOException