|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaudiotagger.audio.generic.AudioFileReader org.jaudiotagger.audio.asf.AsfFileReader
public class AsfFileReader
This reader can read ASF files containing any content (stream type).
Field Summary | |
---|---|
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 |
Fields inherited from class org.jaudiotagger.audio.generic.AudioFileReader |
---|
logger |
Constructor Summary | |
---|---|
AsfFileReader()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.logging.Logger LOGGER
private static final AsfHeaderReader HEADER_READER
Constructor Detail |
---|
public AsfFileReader()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |