Class MatroskaEbmlReader


  • public class MatroskaEbmlReader
    extends java.lang.Object
    Handles reading various different EBML code formats.
    • Constructor Detail

      • MatroskaEbmlReader

        public MatroskaEbmlReader()
    • Method Detail

      • readFixedSizeEbmlInteger

        public static long readFixedSizeEbmlInteger​(java.io.DataInput input,
                                                    int codeLength,
                                                    MatroskaEbmlReader.Type type)
                                             throws java.io.IOException
        Read an EBML code from data input with fixed size - no size encoded in the data.
        Parameters:
        input - Data input to read bytes from
        codeLength - Length of the code in bytes
        type - Method of sign handling (null is unsigned)
        Returns:
        Read EBML code
        Throws:
        java.io.IOException - On read error
      • readEbmlInteger

        public static long readEbmlInteger​(java.io.DataInput input,
                                           MatroskaEbmlReader.Type type)
                                    throws java.io.IOException
        Read an EBML code from data input.
        Parameters:
        input - Data input to read bytes from
        type - Method of sign handling (null is unsigned)
        Returns:
        Read EBML code
        Throws:
        java.io.IOException - On read error
      • readEbmlInteger

        public static long readEbmlInteger​(java.nio.ByteBuffer buffer,
                                           MatroskaEbmlReader.Type type)
        Read an EBML code from byte buffer.
        Parameters:
        buffer - Buffer to read bytes from
        type - Method of sign handling (null is unsigned)
        Returns:
        Read EBML code