Package net.sourceforge.jnlp.services
Class XFileContents
- java.lang.Object
-
- net.sourceforge.jnlp.services.XFileContents
-
- All Implemented Interfaces:
FileContents
class XFileContents extends java.lang.Object implements FileContents
File contents.- Version:
- $Revision: 1.6 $
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Filefilethe file
-
Constructor Summary
Constructors Modifier Constructor Description protectedXFileContents(java.io.File file)Create a file contents implementation for the file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRead()booleancanWrite()java.io.InputStreamgetInputStream()longgetLength()longgetMaxLength()java.lang.StringgetName()java.io.OutputStreamgetOutputStream(boolean overwrite)JNLPRandomAccessFilegetRandomAccessFile(java.lang.String mode)longsetMaxLength(long maxlength)
-
-
-
Method Detail
-
canRead
public boolean canRead() throws java.io.IOException- Specified by:
canReadin interfaceFileContents- Throws:
java.io.IOException- if an I/O exception occurs.
-
canWrite
public boolean canWrite() throws java.io.IOException- Specified by:
canWritein interfaceFileContents- Throws:
java.io.IOException- if an I/O exception occurs.
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin interfaceFileContents- Throws:
java.io.IOException- if an I/O exception occurs.
-
getLength
public long getLength() throws java.io.IOException- Specified by:
getLengthin interfaceFileContents- Throws:
java.io.IOException- if an I/O exception occurs.
-
getMaxLength
public long getMaxLength() throws java.io.IOException- Specified by:
getMaxLengthin interfaceFileContents- Throws:
java.io.IOException- if an I/O exception occurs.
-
getName
public java.lang.String getName() throws java.io.IOException- Specified by:
getNamein interfaceFileContents- Throws:
java.io.IOException- if an I/O exception occurs.
-
getOutputStream
public java.io.OutputStream getOutputStream(boolean overwrite) throws java.io.IOException- Specified by:
getOutputStreamin interfaceFileContents- Throws:
java.io.IOException- if an I/O exception occurs.
-
getRandomAccessFile
public JNLPRandomAccessFile getRandomAccessFile(java.lang.String mode) throws java.io.IOException
- Specified by:
getRandomAccessFilein interfaceFileContents- Throws:
java.io.IOException- if an I/O exception occurs.
-
setMaxLength
public long setMaxLength(long maxlength) throws java.io.IOException- Specified by:
setMaxLengthin interfaceFileContents- Throws:
java.io.IOException- if an I/O exception occurs.
-
-