FileDocCategorySizeDatePackage
VorbisSetupHeader.javaAPI DocJaudiotagger 2.0.41148Wed Mar 30 16:11:54 BST 2011org.jaudiotagger.audio.ogg.util

VorbisSetupHeader

public class VorbisSetupHeader extends Object implements VorbisHeader
Vorbis Setup header

We dont need to decode a vorbis setup header for metatagging, but we should be able to identify it.

author
Paul Taylor
version
12th August 2007

Fields Summary
public static Logger
logger
private boolean
isValid
Constructors Summary
public VorbisSetupHeader(byte[] vorbisData)


      
    
        decodeHeader(vorbisData);
    
Methods Summary
public voiddecodeHeader(byte[] b)

        int packetType = b[FIELD_PACKET_TYPE_POS];
        logger.fine("packetType" + packetType);
        String vorbis = Utils.getString(b, FIELD_CAPTURE_PATTERN_POS, FIELD_CAPTURE_PATTERN_LENGTH, "ISO-8859-1");
        if (packetType == VorbisPacketType.SETUP_HEADER.getType() && vorbis.equals(CAPTURE_PATTERN))
        {
            isValid = true;
        }
    
public booleanisValid()

        return isValid;