|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.provider.AbstractRandomAccessContent
org.apache.commons.vfs.provider.webdav.WebdavFileObject.WebdavRandomAccesContent
Field Summary | |
protected long |
filePointer
|
Constructor Summary | |
protected |
WebdavFileObject.WebdavRandomAccesContent(WebdavFileObject fileObject,
RandomAccessMode mode)
|
Method Summary | |
void |
close()
Closes this random access file stream and releases any system resources associated with the stream. |
long |
getFilePointer()
Returns the current offset in this file. |
InputStream |
getInputStream()
get the inputstream interface Notice: If you use seek(long) you have to reget the InputStream |
long |
length()
Returns the length of this file. |
boolean |
readBoolean()
|
byte |
readByte()
|
char |
readChar()
|
double |
readDouble()
|
float |
readFloat()
|
void |
readFully(byte[] b)
|
void |
readFully(byte[] b,
int off,
int len)
|
int |
readInt()
|
long |
readLong()
|
short |
readShort()
|
int |
readUnsignedByte()
|
int |
readUnsignedShort()
|
String |
readUTF()
|
void |
seek(long pos)
Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs. |
int |
skipBytes(int n)
|
Methods inherited from class org.apache.commons.vfs.provider.AbstractRandomAccessContent |
readLine, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected long filePointer
Constructor Detail |
protected WebdavFileObject.WebdavRandomAccesContent(WebdavFileObject fileObject, RandomAccessMode mode)
Method Detail |
public long getFilePointer() throws IOException
RandomAccessContent
IOException
- if an I/O error occurs.public void seek(long pos) throws IOException
RandomAccessContent
RandomAccessContent.getInputStream()
you have to reget the InputStream after calling RandomAccessContent.seek(long)
pos
- the offset position, measured in bytes from the
beginning of the file, at which to set the file
pointer.
IOException
- if pos
is less than
0
or if an I/O error occurs.public void close() throws IOException
RandomAccessContent
If this file has an associated channel then the channel is closed as well.
IOException
- if an I/O error occurs.public long length() throws IOException
RandomAccessContent
IOException
- if an I/O error occurs.public byte readByte() throws IOException
IOException
public char readChar() throws IOException
IOException
public double readDouble() throws IOException
IOException
public float readFloat() throws IOException
IOException
public int readInt() throws IOException
IOException
public int readUnsignedByte() throws IOException
IOException
public int readUnsignedShort() throws IOException
IOException
public long readLong() throws IOException
IOException
public short readShort() throws IOException
IOException
public boolean readBoolean() throws IOException
IOException
public int skipBytes(int n) throws IOException
IOException
public void readFully(byte[] b) throws IOException
IOException
public void readFully(byte[] b, int off, int len) throws IOException
IOException
public String readUTF() throws IOException
IOException
public InputStream getInputStream() throws IOException
RandomAccessContent
RandomAccessContent.seek(long)
you have to reget the InputStream
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |