org.outerj.daisy.repository
Class ByteArrayPartDataSource
java.lang.Object
org.outerj.daisy.repository.ByteArrayPartDataSource
- All Implemented Interfaces:
- PartDataSource
public final class ByteArrayPartDataSource
- extends Object
- implements PartDataSource
An implementation of the PartDataSource interface that takes
its input from a byte array. Provided for your convenience.
ByteArrayPartDataSource
public ByteArrayPartDataSource(byte[] data)
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