com.soscompany.utils
Class BitsStructure

java.lang.Object
  extended by com.soscompany.utils.BitsStructure
Direct Known Subclasses:
MPEGStructure, RIFFStructure

public class BitsStructure
extends java.lang.Object


Field Summary
 java.lang.String content
           
 Size sizeOfDataRead
           
 
Constructor Summary
BitsStructure(BitsStream bitsStream)
           
 
Method Summary
 boolean bytealigned()
           
 long getBits(int count)
           
 long getBits(int count, boolean moveReadPointer)
           
 Size getSizeOfDataRead()
           
 long nextbits_bytealigned(int numberOfBits)
           
 long nextbits_bytealigned(int numberOfBits, boolean moveReadPointer)
           
 void Parse()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

content

public java.lang.String content

sizeOfDataRead

public Size sizeOfDataRead
Constructor Detail

BitsStructure

public BitsStructure(BitsStream bitsStream)
Method Detail

Parse

public void Parse()
           throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

bytealigned

public boolean bytealigned()
                    throws java.lang.Exception
Throws:
java.lang.Exception

getBits

public long getBits(int count,
                    boolean moveReadPointer)
             throws java.lang.Exception
Throws:
java.lang.Exception

getBits

public long getBits(int count)
             throws java.lang.Exception
Throws:
java.lang.Exception

getSizeOfDataRead

public Size getSizeOfDataRead()

nextbits_bytealigned

public long nextbits_bytealigned(int numberOfBits,
                                 boolean moveReadPointer)
                          throws java.lang.Exception
Throws:
java.lang.Exception

nextbits_bytealigned

public long nextbits_bytealigned(int numberOfBits)
                          throws java.lang.Exception
Throws:
java.lang.Exception