com.fernsroth.squashfs
Interface DataProvider

All Known Implementing Classes:
FileSystemDataProvider

public interface DataProvider

Author:
Joseph M. Ferner (Near Infinity Corporation)

Method Summary
 com.fernsroth.easyio.IRandomAccessSource getData(Manifest source, BaseFile bf)
           
 int getIno(Manifest source, BaseFile bf)
           
 long getLength(Manifest source, BaseFile bf)
           
 

Method Detail

getLength

long getLength(Manifest source,
               BaseFile bf)
               throws java.io.IOException
Parameters:
source - source manifest.
bf - the file to get the length from.
Returns:
the length of the file.
Throws:
java.io.IOException

getIno

int getIno(Manifest source,
           BaseFile bf)
Parameters:
source - source manifest.
bf - the file to get the ino from.
Returns:
the ino.

getData

com.fernsroth.easyio.IRandomAccessSource getData(Manifest source,
                                                 BaseFile bf)
                                                 throws java.io.IOException
Parameters:
source - source manifest.
bf - the file name.
Returns:
the random access source.
Throws:
java.io.IOException


Copyright © 2006 null. All Rights Reserved.