public class VFSRandomAccessContent
extends org.apache.commons.vfs2.provider.AbstractRandomAccessStreamContent
For example the Dropbox API does not provide native random access, so this implementation is not optimized.
| Constructor and Description |
|---|
VFSRandomAccessContent(org.apache.commons.vfs2.provider.AbstractFileObject fileobject,
org.apache.commons.vfs2.util.RandomAccessMode mode)
Constructor method.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this random access content.
|
long |
getFilePointer()
Provides the current position in file.
|
long |
length()
Provides the total length of the underlying file.
|
void |
seek(long pos)
Seeks the given position in file.
|
getInputStream, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setLength, skipBytespublic VFSRandomAccessContent(org.apache.commons.vfs2.provider.AbstractFileObject fileobject,
org.apache.commons.vfs2.util.RandomAccessMode mode)
fileobject - The underlying file objectmode - The mode for random accessNullPointerException - If parameters are nullpublic long getFilePointer()
public void seek(long pos)
throws IOException
pos - The positionIOException - If something goes wrongpublic void close()
throws IOException
IOException - If something goes wrongpublic long length()
throws IOException
IOException - If something goes wrong
Copyright © 2005-2026 Leisenfels GmbH. All rights reserved.