public class ID3Unsynchronization
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
logger |
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 java.nio.ByteBuffer |
synchronize(java.nio.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 boolean requiresUnsynchronization(byte[] abySource)
abySource
- the byte array to be examinedpublic static byte[] unsynchronize(byte[] abySource)
abySource
- a byte array to be unsynchronizedpublic static java.nio.ByteBuffer synchronize(java.nio.ByteBuffer source)
source
- a ByteBuffer to be unsynchronizedCopyright © 2005-2013 java.net. All Rights Reserved.