Class MatroskaEbmlReader
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader
-
public class MatroskaEbmlReader extends java.lang.ObjectHandles reading various different EBML code formats.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatroskaEbmlReader.TypeEBML code type (sign handling method).
-
Constructor Summary
Constructors Constructor Description MatroskaEbmlReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longreadEbmlInteger(java.io.DataInput input, MatroskaEbmlReader.Type type)Read an EBML code from data input.static longreadEbmlInteger(java.nio.ByteBuffer buffer, MatroskaEbmlReader.Type type)Read an EBML code from byte buffer.static longreadFixedSizeEbmlInteger(java.io.DataInput input, int codeLength, MatroskaEbmlReader.Type type)Read an EBML code from data input with fixed size - no size encoded in the data.
-
-
-
Method Detail
-
readFixedSizeEbmlInteger
public static long readFixedSizeEbmlInteger(java.io.DataInput input, int codeLength, MatroskaEbmlReader.Type type) throws java.io.IOExceptionRead an EBML code from data input with fixed size - no size encoded in the data.- Parameters:
input- Data input to read bytes fromcodeLength- Length of the code in bytestype- 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.IOExceptionRead an EBML code from data input.- Parameters:
input- Data input to read bytes fromtype- 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 fromtype- Method of sign handling (null is unsigned)- Returns:
- Read EBML code
-
-