org.gagravarr.flac
Class FlacMetadataBlock

java.lang.Object
  extended by org.gagravarr.flac.FlacFrame
      extended by org.gagravarr.flac.FlacMetadataBlock
Direct Known Subclasses:
FlacInfo, FlacTags.FlacTagsAsMetadata, FlacUnhandledMetadataBlock

public abstract class FlacMetadataBlock
extends FlacFrame

This comes before the audio data. Made up of a series of: 1 byte type 3 byte length


Field Summary
static byte APPLICATION
           
static byte CUESHEET
           
static byte PADDING
           
static byte PICTURE
           
static byte SEEKTABLE
           
static byte STREAMINFO
           
static byte VORBIS_COMMENT
           
 
Constructor Summary
protected FlacMetadataBlock(byte type)
           
 
Method Summary
static FlacMetadataBlock create(InputStream inp)
           
 byte[] getData()
           
 int getType()
           
 boolean isLastMetadataBlock()
           
protected abstract  void write(OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STREAMINFO

public static final byte STREAMINFO
See Also:
Constant Field Values

PADDING

public static final byte PADDING
See Also:
Constant Field Values

APPLICATION

public static final byte APPLICATION
See Also:
Constant Field Values

SEEKTABLE

public static final byte SEEKTABLE
See Also:
Constant Field Values

VORBIS_COMMENT

public static final byte VORBIS_COMMENT
See Also:
Constant Field Values

CUESHEET

public static final byte CUESHEET
See Also:
Constant Field Values

PICTURE

public static final byte PICTURE
See Also:
Constant Field Values
Constructor Detail

FlacMetadataBlock

protected FlacMetadataBlock(byte type)
Method Detail

create

public static FlacMetadataBlock create(InputStream inp)
                                throws IOException
Throws:
IOException

getType

public int getType()

isLastMetadataBlock

public boolean isLastMetadataBlock()

getData

public byte[] getData()
Specified by:
getData in class FlacFrame

write

protected abstract void write(OutputStream out)
                       throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.