Daisy Open Source CMS

org.outerj.daisy.repository
Class FilePartDataSource

java.lang.Object
  extended by org.outerj.daisy.repository.FilePartDataSource
All Implemented Interfaces:
PartDataSource

public class FilePartDataSource
extends Object
implements PartDataSource


Constructor Summary
FilePartDataSource(File file)
           
 
Method Summary
 InputStream createInputStream()
          This method may be called multiple times.
 long getSize()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePartDataSource

public FilePartDataSource(File file)
Method Detail

createInputStream

public InputStream createInputStream()
                              throws IOException
Description copied from interface: PartDataSource
This method may be called multiple times.

Specified by:
createInputStream in interface PartDataSource
Throws:
IOException

getSize

public long getSize()
Specified by:
getSize in interface PartDataSource

Daisy Open Source CMS