Package net.bramp.ffmpeg.nut
Class Packet
java.lang.Object
net.bramp.ffmpeg.nut.Packet
- Direct Known Subclasses:
MainHeaderPacket,StreamHeaderPacket
Represents a packet in the NUT multimedia container format.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the startcode values used to identify NUT packet types. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidread(NutDataInputStream in, long startcode) Reads a complete packet including header, body, and footer.protected voidReads the body of the packet from the input stream.voidSkips forward in the stream to the start of the packet footer.toString()
-
Field Details
-
header
-
-
Constructor Details
-
Packet
public Packet()
-
-
Method Details
-
readBody
Reads the body of the packet from the input stream.- Throws:
IOException
-
read
Reads a complete packet including header, body, and footer.- Throws:
IOException
-
toString
-