Class XFileContents
java.lang.Object
net.sourceforge.jnlp.services.XFileContents
- All Implemented Interfaces:
FileContents
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXFileContents(File file) Create a file contents implementation for the file. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead()booleancanWrite()longlonggetName()getOutputStream(boolean overwrite) getRandomAccessFile(String mode) longsetMaxLength(long maxlength)
-
Field Details
-
file
the file
-
-
Constructor Details
-
XFileContents
Create a file contents implementation for the file.
-
-
Method Details
-
canRead
- Specified by:
canReadin interfaceFileContents- Throws:
IOException- if an I/O exception occurs.
-
canWrite
- Specified by:
canWritein interfaceFileContents- Throws:
IOException- if an I/O exception occurs.
-
getInputStream
- Specified by:
getInputStreamin interfaceFileContents- Throws:
IOException- if an I/O exception occurs.
-
getLength
- Specified by:
getLengthin interfaceFileContents- Throws:
IOException- if an I/O exception occurs.
-
getMaxLength
- Specified by:
getMaxLengthin interfaceFileContents- Throws:
IOException- if an I/O exception occurs.
-
getName
- Specified by:
getNamein interfaceFileContents- Throws:
IOException- if an I/O exception occurs.
-
getOutputStream
- Specified by:
getOutputStreamin interfaceFileContents- Throws:
IOException- if an I/O exception occurs.
-
getRandomAccessFile
- Specified by:
getRandomAccessFilein interfaceFileContents- Throws:
IOException- if an I/O exception occurs.
-
setMaxLength
- Specified by:
setMaxLengthin interfaceFileContents- Throws:
IOException- if an I/O exception occurs.
-