netx.jnlp.services
class XFileContents extends java.lang.Object implements javax.jnlp.FileContents
Modifier | Constructor and Description |
---|---|
protected |
XFileContents(java.io.File file)
Create a file contents implementation for the file.
|
Modifier and Type | Method and Description |
---|---|
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) |
protected XFileContents(java.io.File file)
public boolean canRead() throws java.io.IOException
canRead
in interface javax.jnlp.FileContents
java.io.IOException
- if an I/O exception occurs.public boolean canWrite() throws java.io.IOException
canWrite
in interface javax.jnlp.FileContents
java.io.IOException
- if an I/O exception occurs.public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.jnlp.FileContents
java.io.IOException
- if an I/O exception occurs.public long getLength() throws java.io.IOException
getLength
in interface javax.jnlp.FileContents
java.io.IOException
- if an I/O exception occurs.public long getMaxLength() throws java.io.IOException
getMaxLength
in interface javax.jnlp.FileContents
java.io.IOException
- if an I/O exception occurs.public java.lang.String getName() throws java.io.IOException
getName
in interface javax.jnlp.FileContents
java.io.IOException
- if an I/O exception occurs.public java.io.OutputStream getOutputStream(boolean overwrite) throws java.io.IOException
getOutputStream
in interface javax.jnlp.FileContents
java.io.IOException
- if an I/O exception occurs.public javax.jnlp.JNLPRandomAccessFile getRandomAccessFile(java.lang.String mode) throws java.io.IOException
getRandomAccessFile
in interface javax.jnlp.FileContents
java.io.IOException
- if an I/O exception occurs.public long setMaxLength(long maxlength) throws java.io.IOException
setMaxLength
in interface javax.jnlp.FileContents
java.io.IOException
- if an I/O exception occurs.