|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.junrar.vfs2.provider.rar.RandomAccessContentAccess
public class RandomAccessContentAccess
| Constructor Summary | |
|---|---|
RandomAccessContentAccess(org.apache.commons.vfs2.FileObject file)
|
|
RandomAccessContentAccess(org.apache.commons.vfs2.RandomAccessContent rac)
|
|
| Method Summary | |
|---|---|
void |
close()
Close this file. |
long |
getPosition()
|
int |
read()
Read a single byte of data. |
int |
read(byte[] buffer,
int off,
int count)
Read up to count bytes to the specified buffer. |
int |
readFully(byte[] buffer,
int count)
Read exactly count bytes to the specified buffer. |
void |
setPosition(long pos)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomAccessContentAccess(org.apache.commons.vfs2.RandomAccessContent rac)
rac -
public RandomAccessContentAccess(org.apache.commons.vfs2.FileObject file)
throws org.apache.commons.vfs2.FileSystemException
rac -
org.apache.commons.vfs2.FileSystemException| Method Detail |
|---|
public long getPosition()
throws IOException
getPosition in interface IReadOnlyAccessIOException
public void setPosition(long pos)
throws IOException
setPosition in interface IReadOnlyAccesspos - the position in the file
IOException
public int read()
throws IOException
IReadOnlyAccess
read in interface IReadOnlyAccessIOException
public int read(byte[] buffer,
int off,
int count)
throws IOException
IReadOnlyAccess
read in interface IReadOnlyAccessIOException
public int readFully(byte[] buffer,
int count)
throws IOException
IReadOnlyAccess
readFully in interface IReadOnlyAccessbuffer - where to store the read datacount - how many bytes to read
IOException
public void close()
throws IOException
IReadOnlyAccess
close in interface IReadOnlyAccessIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||