com.aelitis.azureus.core.util
Class QTFastStartRAF

java.lang.Object
  extended by com.aelitis.azureus.core.util.QTFastStartRAF

public class QTFastStartRAF
extends Object


Nested Class Summary
static interface QTFastStartRAF.FileAccessor
           
 
Constructor Summary
QTFastStartRAF(File file, boolean enable)
           
QTFastStartRAF(QTFastStartRAF.FileAccessor accessor, boolean enable)
           
 
Method Summary
 void close()
           
static byte[] copyOfRange(byte[] original, int from, int to)
           
static boolean isSupportedExtension(String extension)
           
 long length()
           
 int read(byte[] buffer, int pos, int len)
           
 void seek(long pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QTFastStartRAF

public QTFastStartRAF(File file,
                      boolean enable)
               throws IOException
Throws:
IOException

QTFastStartRAF

public QTFastStartRAF(QTFastStartRAF.FileAccessor accessor,
                      boolean enable)
               throws IOException
Throws:
IOException
Method Detail

isSupportedExtension

public static boolean isSupportedExtension(String extension)

copyOfRange

public static byte[] copyOfRange(byte[] original,
                                 int from,
                                 int to)

seek

public void seek(long pos)
          throws IOException
Throws:
IOException

read

public int read(byte[] buffer,
                int pos,
                int len)
         throws IOException
Throws:
IOException

length

public long length()
            throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException