org.hd.d.pg2k.svrCore
Interface FileTools.RandomAccessData

Enclosing class:
FileTools

public static interface FileTools.RandomAccessData

Random-access read-only contiguous file accessor.


Method Summary
 long length()
          Length of the data in bytes.
 void readFully(java.nio.ByteBuffer buf, int position)
          Read up to the limit in the supplied buffer.
 

Method Detail

readFully

void readFully(java.nio.ByteBuffer buf,
               int position)
               throws java.io.IOException
Read up to the limit in the supplied buffer. If a full read is not possible (eg too close to EOF) then an exception is thrown.

Throws:
java.io.IOException

length

long length()
            throws java.io.IOException
Length of the data in bytes.

Throws:
java.io.IOException

DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.