public interface VfsRandomAccess
extends java.io.DataInput, java.io.DataOutput
Copyright 2004-2006 Partner Software, Inc.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the file and releases any associated resources.
|
VfsFile |
getFile()
The VfsFile this VfsRandomAccess is accessing.
|
long |
getLength()
Gets the length of the file in bytes.
|
long |
getPosition()
The current position (aka file pointer), in bytes
|
boolean |
isWritable()
True if this is a read-write file.
|
int |
read(byte[] array,
int start,
int length) |
void |
setLength(long newLength)
Sets the length of the file in bytes.
|
void |
setPosition(long newPosition)
Sets the current position (aka file pointer) to the specified byte
offset.
|
void |
setWritable(boolean tizit)
Attempt to set this to writable.
|
VfsFile getFile()
boolean isWritable()
void setWritable(boolean tizit)
void setPosition(long newPosition)
throws java.io.IOException
newPosition - new byte offset positionjava.io.IOException - if the set failslong getPosition()
throws java.io.IOException
java.io.IOExceptionvoid setLength(long newLength)
throws java.io.IOException
newLength - length file will be set to.java.io.IOExceptionlong getLength()
throws java.io.IOException
java.io.IOExceptionvoid close()
throws java.io.IOException
java.io.IOException - if closing failsint read(byte[] array,
int start,
int length)
throws java.io.IOException
java.io.IOException