Package com.biglybt.core.util
Class QTFastStartRAF.RAFAccessor
- java.lang.Object
-
- com.biglybt.core.util.QTFastStartRAF.RAFAccessor
-
- All Implemented Interfaces:
QTFastStartRAF.FileAccessor
- Enclosing class:
- QTFastStartRAF
private static class QTFastStartRAF.RAFAccessor extends java.lang.Object implements QTFastStartRAF.FileAccessor
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RAFAccessor(java.io.File _file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getFilePointer()
java.lang.String
getName()
long
length()
int
read(byte[] buffer, int pos, int len)
void
readFully(byte[] buffer)
int
readInt()
long
readLong()
void
seek(long pos)
void
skipBytes(int num)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceQTFastStartRAF.FileAccessor
-
getFilePointer
public long getFilePointer() throws java.io.IOException
- Specified by:
getFilePointer
in interfaceQTFastStartRAF.FileAccessor
- Throws:
java.io.IOException
-
seek
public void seek(long pos) throws java.io.IOException
- Specified by:
seek
in interfaceQTFastStartRAF.FileAccessor
- Throws:
java.io.IOException
-
skipBytes
public void skipBytes(int num) throws java.io.IOException
- Specified by:
skipBytes
in interfaceQTFastStartRAF.FileAccessor
- Throws:
java.io.IOException
-
length
public long length() throws java.io.IOException
- Specified by:
length
in interfaceQTFastStartRAF.FileAccessor
- Throws:
java.io.IOException
-
read
public int read(byte[] buffer, int pos, int len) throws java.io.IOException
- Specified by:
read
in interfaceQTFastStartRAF.FileAccessor
- Throws:
java.io.IOException
-
readInt
public int readInt() throws java.io.IOException
- Specified by:
readInt
in interfaceQTFastStartRAF.FileAccessor
- Throws:
java.io.IOException
-
readLong
public long readLong() throws java.io.IOException
- Specified by:
readLong
in interfaceQTFastStartRAF.FileAccessor
- Throws:
java.io.IOException
-
readFully
public void readFully(byte[] buffer) throws java.io.IOException
- Specified by:
readFully
in interfaceQTFastStartRAF.FileAccessor
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfaceQTFastStartRAF.FileAccessor
- Throws:
java.io.IOException
-
-