Package net.bramp.ffmpeg.nut
Class NutReader
- java.lang.Object
-
- net.bramp.ffmpeg.nut.NutReader
-
-
Field Summary
Fields Modifier and Type Field Description MainHeaderPacketheaderList<Stream>streams
-
Constructor Summary
Constructors Constructor Description NutReader(InputStream in, NutReaderListener listener)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisKnownStartcode(long startcode)voidread()Demux the inputstreamprotected voidreadFileId()Read the magic at the beginning of the file.protected longreadReservedHeaders()Read headers we don't know how to parse yet, returning the next startcode.
-
-
-
Field Detail
-
header
public MainHeaderPacket header
-
-
Constructor Detail
-
NutReader
public NutReader(InputStream in, NutReaderListener listener)
-
-
Method Detail
-
isKnownStartcode
public static boolean isKnownStartcode(long startcode)
-
readFileId
protected void readFileId() throws IOException
Read the magic at the beginning of the file.- Throws:
IOException- If a I/O error occurs
-
readReservedHeaders
protected long readReservedHeaders() throws IOException
Read headers we don't know how to parse yet, returning the next startcode.- Returns:
- The next startcode
- Throws:
IOException- If a I/O error occurs
-
read
public void read() throws IOException
Demux the inputstream- Throws:
IOException- If a I/O error occurs
-
-