net.sf.ext.mediamanager.ebml
Interface DataSource

All Known Implementing Classes:
InputStreamDataSource

public interface DataSource

Defines the interface used for custom DataSource's. A DataSource provides methods of reading bytes individually or in arrays. These basic functions must be defined in any DataSource objects to be used with the EBMLReader.

Author:
John Cannon

Method Summary
 int getBytePosition()
           
 int read(byte[] buff)
           
 int read(byte[] buff, int offset, int length)
           
 byte readByte()
           
 int skip(long offset)
           
 

Method Detail

readByte

public byte readByte()

read

public int read(byte[] buff)

read

public int read(byte[] buff,
                int offset,
                int length)

skip

public int skip(long offset)

getBytePosition

public int getBytePosition()