com.soscompany.avi.utils
Class AVIBitsStream
java.lang.Object
com.soscompany.avi.utils.AVIBitsStream
- All Implemented Interfaces:
- BitsStream
public class AVIBitsStream
- extends java.lang.Object
- implements BitsStream
|
Constructor Summary |
AVIBitsStream(java.lang.String fileName,
int streamIdx)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AVIBitsStream
public AVIBitsStream(java.lang.String fileName,
int streamIdx)
throws java.lang.Exception
- Throws:
java.lang.Exception
mark
public void mark(int readlimit)
throws java.io.IOException
- Specified by:
mark in interface BitsStream
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Specified by:
reset in interface BitsStream
- Throws:
java.io.IOException
getPosition
public Size getPosition()
throws java.io.IOException
- Specified by:
getPosition in interface BitsStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface BitsStream
- Throws:
java.io.IOException
byteAlign
public void byteAlign()
throws java.io.IOException
- Specified by:
byteAlign in interface BitsStream
- Throws:
java.io.IOException
getBits
public int getBits(long[] buffer,
int count,
boolean moveReadPointer)
throws java.io.IOException
- Specified by:
getBits in interface BitsStream
- Throws:
java.io.IOException
getBits
public int getBits(long[] buffer,
int count)
throws java.io.IOException
- Specified by:
getBits in interface BitsStream
- Throws:
java.io.IOException
getDataSize
public Size getDataSize()
throws java.io.IOException
- Specified by:
getDataSize in interface BitsStream
- Throws:
java.io.IOException
setReadLimit
public void setReadLimit(long limit)
- Specified by:
setReadLimit in interface BitsStream
setReadProgressListener
public void setReadProgressListener(ReadProgressListener listener)
- Specified by:
setReadProgressListener in interface BitsStream