public class VorbisPacketFactory extends Object
VorbisPacket
for a given
incoming OggPacket
, and creates itConstructor and Description |
---|
VorbisPacketFactory() |
Modifier and Type | Method and Description |
---|---|
static VorbisPacket |
create(OggPacket packet)
Creates the appropriate
VorbisPacket
instance based on the type. |
protected static boolean |
isVorbisSpecial(OggPacket packet) |
static boolean |
isVorbisStream(OggPacket firstPacket)
Does this packet (the first in the stream) contain
the magic string indicating that it's a vorbis
one?
|
protected static void |
populateMetadataHeader(byte[] b,
int type,
int dataLength)
Popupulates the metadata packet header,
which is "#vorbis" where # is the type.
|
protected static void populateMetadataHeader(byte[] b, int type, int dataLength)
public static boolean isVorbisStream(OggPacket firstPacket)
protected static boolean isVorbisSpecial(OggPacket packet)
public static VorbisPacket create(OggPacket packet)
VorbisPacket
instance based on the type.Copyright © 2015. All rights reserved.