public class VorbisComments extends VorbisStyleComments implements VorbisPacket, OggAudioTagsHeader
KEY_ALBUM, KEY_ARTIST, KEY_DATE, KEY_GENRE, KEY_TITLE, KEY_TRACKNUMBER
HEADER_LENGTH_AUDIO, HEADER_LENGTH_METADATA, TYPE_COMMENTS, TYPE_INFO, TYPE_SETUP
Constructor and Description |
---|
VorbisComments() |
VorbisComments(OggPacket pkt) |
Modifier and Type | Method and Description |
---|---|
int |
getHeaderSize()
How big is the header on this packet?
For Metadata packets it's normally 7 bytes,
otherwise for audio packets there is no header.
|
protected boolean |
hasFramingBit()
Vorbis Comments have framing bits if there's padding
after the end of the defined comments
|
void |
populateMetadataFooter(OutputStream out) |
void |
populateMetadataHeader(byte[] b,
int dataLength)
Have the metadata header populated into the data,
normally used when writing out.
|
addComment, getAlbum, getAllComments, getArtist, getComments, getDate, getGenre, getInt4, getSingleComment, getTitle, getTrackNumber, getTrackNumberNumeric, getVendor, normaliseTag, removeAllComments, removeComments, setComments, setVendor, write
getData, getOggPacket, setData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlbum, getArtist, getComments, getDate, getGenre, getTitle, getTrackNumber, getTrackNumberNumeric, getVendor
getData, setData, write
public VorbisComments(OggPacket pkt)
public VorbisComments()
protected boolean hasFramingBit()
hasFramingBit
in class VorbisStyleComments
public int getHeaderSize()
VorbisPacket
getHeaderSize
in interface VorbisPacket
getHeaderSize
in class VorbisStyleComments
public void populateMetadataHeader(byte[] b, int dataLength)
VorbisPacket
VorbisPacketFactory.populateMetadataHeader(byte[], int, int)
populateMetadataHeader
in interface VorbisPacket
populateMetadataHeader
in class VorbisStyleComments
public void populateMetadataFooter(OutputStream out)
populateMetadataFooter
in class VorbisStyleComments
Copyright © 2015. All rights reserved.