public class FlacStreamReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FLAC_STREAM_IDENTIFIER |
static int |
FLAC_STREAM_IDENTIFIER_LENGTH |
static java.util.logging.Logger |
logger |
private java.io.RandomAccessFile |
raf |
private int |
startOfFlacInFile |
Constructor and Description |
---|
FlacStreamReader(java.io.RandomAccessFile raf)
Create instance for holding stream info
|
Modifier and Type | Method and Description |
---|---|
void |
findStream()
Reads the stream block to ensure it is a flac file
|
int |
getStartOfFlacInFile()
Usually flac header is at start of file, but unofficially and ID3 tag is allowed at the start of the file.
|
private boolean |
isFlacHeader() |
private boolean |
isId3v2Tag() |
public static java.util.logging.Logger logger
public static final int FLAC_STREAM_IDENTIFIER_LENGTH
public static final java.lang.String FLAC_STREAM_IDENTIFIER
private java.io.RandomAccessFile raf
private int startOfFlacInFile
public FlacStreamReader(java.io.RandomAccessFile raf)
raf
- public void findStream() throws java.io.IOException, CannotReadException
java.io.IOException
CannotReadException
private boolean isId3v2Tag() throws java.io.IOException
java.io.IOException
private boolean isFlacHeader() throws java.io.IOException
java.io.IOException
public int getStartOfFlacInFile()
Copyright © 2005-2013 java.net. All Rights Reserved.