net.sf.ext.mediamanager.ebml
Class InputStreamDataSource
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
in
protected java.io.InputStream in
pos
protected int pos
InputStreamDataSource
public InputStreamDataSource(java.io.InputStream in)
- Creates a new instance of InputStreamDataSource
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