public class ID3Unsynchronization extends Object
Constructor and Description |
---|
ID3Unsynchronization() |
Modifier and Type | Method and Description |
---|---|
static boolean |
requiresUnsynchronization(byte[] abySource)
Check if a byte array will require unsynchronization before being written as a tag.
|
static ByteBuffer |
synchronize(ByteBuffer source)
Synchronize an array of bytes, this should only be called if it has been determined the tag is unsynchronised
Any patterns of the form $FF $00 should be replaced by $FF
|
static byte[] |
unsynchronize(byte[] abySource)
Unsynchronize an array of bytes, this should only be called if the decision has already been made to
unsynchronize the byte array
In order to prevent a media player from incorrectly interpreting the contents of a tag, all $FF bytes
followed by a byte with value >=224 must be followed by a $00 byte (thus, $FF $F0 sequences become $FF $00 $F0).
|
public static Logger logger
public static boolean requiresUnsynchronization(byte[] abySource)
abySource
- the byte array to be examinedpublic static byte[] unsynchronize(byte[] abySource)
abySource
- a byte array to be unsynchronizedpublic static ByteBuffer synchronize(ByteBuffer source)
source
- a ByteBuffer to be unsynchronizedCopyright © 2005–2020 jthink.net. All rights reserved.