net.sf.ext.mediamanager.ebml
Class InputStreamDataSource

java.lang.Object
  extended by net.sf.ext.mediamanager.ebml.InputStreamDataSource
All Implemented Interfaces:
DataSource

public class InputStreamDataSource
extends java.lang.Object
implements DataSource


Field Summary
protected  java.io.InputStream in
           
protected  int pos
           
 
Constructor Summary
InputStreamDataSource(java.io.InputStream in)
          Creates a new instance of InputStreamDataSource
 
Method Summary
 int getBytePosition()
           
 java.io.InputStream getInputStream()
           
 int read(byte[] buff)
           
 int read(byte[] buff, int offset, int length)
           
 byte readByte()
           
 int skip(long offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected java.io.InputStream in

pos

protected int pos
Constructor Detail

InputStreamDataSource

public InputStreamDataSource(java.io.InputStream in)
Creates a new instance of InputStreamDataSource

Method Detail

getInputStream

public java.io.InputStream getInputStream()

read

public int read(byte[] buff)
Specified by:
read in interface DataSource

read

public int read(byte[] buff,
                int offset,
                int length)
Specified by:
read in interface DataSource

skip

public int skip(long offset)
Specified by:
skip in interface DataSource

readByte

public byte readByte()
Specified by:
readByte in interface DataSource

getBytePosition

public int getBytePosition()
Specified by:
getBytePosition in interface DataSource