com.github.stephenc.javaisotools.sabre.impl
Class ByteArrayDataReference

java.lang.Object
  extended by com.github.stephenc.javaisotools.sabre.impl.ByteArrayDataReference
All Implemented Interfaces:
DataReference

public class ByteArrayDataReference
extends Object
implements DataReference


Constructor Summary
ByteArrayDataReference(byte[] buffer)
           
ByteArrayDataReference(byte[] buffer, int start, int length)
           
 
Method Summary
 InputStream createInputStream()
           
 long getLength()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayDataReference

public ByteArrayDataReference(byte[] buffer)

ByteArrayDataReference

public ByteArrayDataReference(byte[] buffer,
                              int start,
                              int length)
Method Detail

getLength

public long getLength()
Specified by:
getLength in interface DataReference

createInputStream

public InputStream createInputStream()
                              throws IOException
Specified by:
createInputStream in interface DataReference
Throws:
IOException


Copyright © 2013. All Rights Reserved.