|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.voxbiblia.id3j.ID3Serializer
public class ID3Serializer
Serializes music file metadata data into a ID3 version 2.3.0 tag byte stream that can be prepended to an MP3 file.
| Constructor Summary | |
|---|---|
ID3Serializer()
|
|
| Method Summary | |
|---|---|
byte[] |
serialize(ID3Tag tag)
Serializes the data in the given tag into the returned byte array. |
byte[] |
serialize(ID3Tag tag,
byte[] previous)
Copies the frames from the tag previous, replacing any frames which are set in tag. |
byte[] |
serialize(ID3Tag tag,
byte[] previous,
boolean compensateCrc)
Copies the frames from the tag previous, replacing any frames which are set in tag. |
void |
setPadCount(int padCount)
Configures this serializer to add padCount null bytes at the end of the tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ID3Serializer()
| Method Detail |
|---|
public byte[] serialize(ID3Tag tag)
tag - the tag
public byte[] serialize(ID3Tag tag,
byte[] previous)
tag - the data to write to the tagprevious - a previously serialized tag to extract default values from
public byte[] serialize(ID3Tag tag,
byte[] previous,
boolean compensateCrc)
tag - the data to write to the tagprevious - a previously serialized tag to extract default values fromcompensateCrc - if set to true the serialized tag is CRC32-neutral.
public void setPadCount(int padCount)
padCount - the number of padding bytes to add to written tags
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||