com.aelitis.azureus.core.util
Class QTFastStartRAF

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

public class QTFastStartRAF
extends java.lang.Object


Nested Class Summary
static interface QTFastStartRAF.FileAccessor
           
 
Constructor Summary
QTFastStartRAF(java.io.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(java.lang.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(java.io.File file,
                      boolean enable)
               throws java.io.IOException
Throws:
java.io.IOException

QTFastStartRAF

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

isSupportedExtension

public static boolean isSupportedExtension(java.lang.String extension)

copyOfRange

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

seek

public void seek(long pos)
          throws java.io.IOException
Throws:
java.io.IOException

read

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

length

public long length()
            throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException