FileDocCategorySizeDatePackage
WavRIFFHeader.javaAPI DocJaudiotagger 2.0.41571Wed Mar 30 16:11:54 BST 2011org.jaudiotagger.audio.wav.util

WavRIFFHeader

public class WavRIFFHeader extends Object

Fields Summary
private boolean
isValid
Constructors Summary
public WavRIFFHeader(byte[] b)


      
    
        //System.err.println(b.length);
        String RIFF = new String(b, 0, 4);
        //System.err.println(RIFF);
        String WAVE = new String(b, 8, 4);
        //System.err.println(WAVE);
        if (RIFF.equals("RIFF") && WAVE.equals("WAVE"))
        {
            isValid = true;
        }

    
Methods Summary
public booleanisValid()

        return isValid;
    
public java.lang.StringtoString()

        String out = "RIFF-WAVE Header:\n";
        out += "Is valid?: " + isValid;
        return out;