public class AsfFileReader extends AudioFileReader
Modifier and Type | Field and Description |
---|---|
private static AsfHeaderReader |
HEADER_READER
This reader will be configured to read tag and audio header information.
|
private static java.util.logging.Logger |
LOGGER
Logger instance
|
logger
Constructor and Description |
---|
AsfFileReader() |
Modifier and Type | Method and Description |
---|---|
private boolean |
determineVariableBitrate(AsfHeader header)
Determines if the "isVbr" field is set in the extended content
description.
|
private GenericAudioHeader |
getAudioHeader(AsfHeader header)
Creates a generic audio header instance with provided data from header.
|
protected GenericAudioHeader |
getEncodingInfo(java.io.RandomAccessFile raf)
(overridden)
|
private AsfTag |
getTag(AsfHeader header)
Creates a tag instance with provided data from header.
|
protected AsfTag |
getTag(java.io.RandomAccessFile raf)
(overridden)
|
AudioFile |
read(java.io.File f) |
private static final java.util.logging.Logger LOGGER
private static final AsfHeaderReader HEADER_READER
private boolean determineVariableBitrate(AsfHeader header)
header
- the header to look up.true
if "isVbr" is present with a
true
value.private GenericAudioHeader getAudioHeader(AsfHeader header) throws CannotReadException
header
- ASF header which contains the information.CannotReadException
- If header does not contain mandatory information. (Audio
stream chunk and file header chunk)protected GenericAudioHeader getEncodingInfo(java.io.RandomAccessFile raf) throws CannotReadException, java.io.IOException
getEncodingInfo
in class AudioFileReader
CannotReadException
java.io.IOException
AudioFileReader.getEncodingInfo(java.io.RandomAccessFile)
private AsfTag getTag(AsfHeader header)
header
- ASF header which contains the information.protected AsfTag getTag(java.io.RandomAccessFile raf) throws CannotReadException, java.io.IOException
getTag
in class AudioFileReader
CannotReadException
java.io.IOException
AudioFileReader.getTag(java.io.RandomAccessFile)
public AudioFile read(java.io.File f) throws CannotReadException, java.io.IOException, TagException, ReadOnlyFileException, InvalidAudioFrameException
read
in class AudioFileReader
CannotReadException
java.io.IOException
TagException
ReadOnlyFileException
InvalidAudioFrameException
Copyright © 2005-2013 java.net. All Rights Reserved.