public class DbxRandomAccessContent
extends org.apache.commons.vfs2.provider.AbstractRandomAccessStreamContent
Modifier and Type | Field and Description |
---|---|
protected java.io.DataInputStream |
dataInputStream
The data input stream.
|
protected java.io.InputStream |
dbxInputStream
The original Dropbox input stream.
|
protected DbxFileObject |
fileObject
The underlying file object.
|
protected long |
filePointer
Position in file.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this random access content.
|
protected java.io.DataInputStream |
getDataInputStream()
Creates an input stream at the current position.
|
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, skipBytes
protected long filePointer
protected DbxFileObject fileObject
protected java.io.DataInputStream dataInputStream
protected java.io.InputStream dbxInputStream
public long getFilePointer() throws java.io.IOException
java.io.IOException
- If something goes wrongpublic void seek(long pos) throws java.io.IOException
pos
- The positionjava.io.IOException
- If something goes wrongprotected java.io.DataInputStream getDataInputStream() throws java.io.IOException
getDataInputStream
in class org.apache.commons.vfs2.provider.AbstractRandomAccessStreamContent
java.io.IOException
- If something goes wrongpublic void close() throws java.io.IOException
java.io.IOException
- If something goes wrongpublic long length() throws java.io.IOException
java.io.IOException
- If something goes wrongCopyright © 2005-2014 Leisenfels UG. All rights reserved.