org.jaudiotagger.audio.ogg.util
Class OggCRCFactory

java.lang.Object
  extended by org.jaudiotagger.audio.ogg.util.OggCRCFactory

public class OggCRCFactory
extends java.lang.Object

OffCRC Calculations

$Id: OggCRCFactory.java,v 1.8 2009/11/12 15:43:05 paultaylor Exp $

Version:
19 d�cembre 2003
Author:
Raphael Slinckx (KiKiDonK)

Field Summary
private static long[] crc_lookup
           
private static boolean init
           
static java.util.logging.Logger logger
           
 
Constructor Summary
OggCRCFactory()
           
 
Method Summary
 boolean checkCRC(byte[] data, byte[] crc)
           
static byte[] computeCRC(byte[] data)
           
static void init()
           
private static int u(int n)
           
 
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

crc_lookup

private static long[] crc_lookup

init

private static boolean init
Constructor Detail

OggCRCFactory

public OggCRCFactory()
Method Detail

init

public static void init()

checkCRC

public boolean checkCRC(byte[] data,
                        byte[] crc)

computeCRC

public static byte[] computeCRC(byte[] data)

u

private static int u(int n)