|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface VfsRandomAccess
A random-access file in a Vfs.
Copyright 2004-2006 Partner Software, Inc.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface java.io.DataInput |
|---|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
| Methods inherited from interface java.io.DataOutput |
|---|
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Method Detail |
|---|
VfsFile getFile()
boolean isWritable()
void setWritable(boolean tizit)
void setPosition(long newPosition)
throws java.io.IOException
newPosition - new byte offset position
java.io.IOException - if the set fails
long getPosition()
throws java.io.IOException
java.io.IOException
void setLength(long newLength)
throws java.io.IOException
newLength - length file will be set to.
java.io.IOException
long getLength()
throws java.io.IOException
java.io.IOException
void close()
throws java.io.IOException
java.io.IOException - if closing fails
int read(byte[] array,
int start,
int length)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||