org.outerj.daisy.repository
Class ByteArrayPartDataSource

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

public class ByteArrayPartDataSource
extends java.lang.Object
implements PartDataSource

An implementation of the PartDataSource interface that takes its input from a byte array. Provided for your convenience.


Constructor Summary
ByteArrayPartDataSource(byte[] data)
           
 
Method Summary
 java.io.InputStream createInputStream()
          This method may be called multiple times.
 long getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayPartDataSource

public ByteArrayPartDataSource(byte[] data)
Method Detail

createInputStream

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

Specified by:
createInputStream in interface PartDataSource
Throws:
java.io.IOException

getSize

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


Copyright © -2012 . All Rights Reserved.