org.jaudiotagger.audio.flac
Class FlacInfoReader

java.lang.Object
  extended by org.jaudiotagger.audio.flac.FlacInfoReader

public class FlacInfoReader
extends java.lang.Object

Read info from Flac file


Field Summary
private static int KILOBYTES_TO_BYTES_MULTIPLIER
           
static java.util.logging.Logger logger
           
private static int NO_OF_BITS_IN_BYTE
           
 
Constructor Summary
FlacInfoReader()
           
 
Method Summary
private  int computeBitrate(float length, long size)
           
 int countMetaBlocks(java.io.File f)
          Count the number of metadatablocks, useful for debugging
 GenericAudioHeader read(java.io.RandomAccessFile raf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static java.util.logging.Logger logger

NO_OF_BITS_IN_BYTE

private static final int NO_OF_BITS_IN_BYTE
See Also:
Constant Field Values

KILOBYTES_TO_BYTES_MULTIPLIER

private static final int KILOBYTES_TO_BYTES_MULTIPLIER
See Also:
Constant Field Values
Constructor Detail

FlacInfoReader

public FlacInfoReader()
Method Detail

read

public GenericAudioHeader read(java.io.RandomAccessFile raf)
                        throws CannotReadException,
                               java.io.IOException
Throws:
CannotReadException
java.io.IOException

computeBitrate

private int computeBitrate(float length,
                           long size)

countMetaBlocks

public int countMetaBlocks(java.io.File f)
                    throws CannotReadException,
                           java.io.IOException
Count the number of metadatablocks, useful for debugging

Parameters:
f -
Returns:
Throws:
CannotReadException
java.io.IOException