com.fernsroth.squashfs
Class FileSystemDataProvider

java.lang.Object
  extended by com.fernsroth.squashfs.FileSystemDataProvider
All Implemented Interfaces:
DataProvider

public class FileSystemDataProvider
extends java.lang.Object
implements DataProvider

Author:
Joseph M. Ferner (Near Infinity Corporation)

Constructor Summary
FileSystemDataProvider(java.io.File sourceDir)
           
 
Method Summary
 com.fernsroth.easyio.IRandomAccessSource getData(Manifest source, BaseFile bf)
          
 int getIno(Manifest source, BaseFile bf)
          
 long getLength(Manifest source, BaseFile bf)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemDataProvider

public FileSystemDataProvider(java.io.File sourceDir)
Parameters:
sourceDir -
Method Detail

getData

public com.fernsroth.easyio.IRandomAccessSource getData(Manifest source,
                                                        BaseFile bf)
                                                 throws java.io.IOException

Specified by:
getData in interface DataProvider
Parameters:
source - source manifest.
bf - the file name.
Returns:
the random access source.
Throws:
java.io.IOException

getIno

public int getIno(Manifest source,
                  BaseFile bf)

Specified by:
getIno in interface DataProvider
Parameters:
source - source manifest.
bf - the file to get the ino from.
Returns:
the ino.

getLength

public long getLength(Manifest source,
                      BaseFile bf)
               throws java.io.IOException

Specified by:
getLength in interface DataProvider
Parameters:
source - source manifest.
bf - the file to get the length from.
Returns:
the length of the file.
Throws:
java.io.IOException


Copyright © 2006 null. All Rights Reserved.