|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmagoffin.matt.meta.support.AbstractMetadataResource
magoffin.matt.meta.support.AbstractEnumMetadataResource<AudioMetadataType>
magoffin.matt.meta.audio.ID3v1MetadataResource
public class ID3v1MetadataResource
MetadataResource implementation for ID3v1 resources.
| Field Summary |
|---|
| Fields inherited from class magoffin.matt.meta.support.AbstractMetadataResource |
|---|
log |
| Constructor Summary | |
|---|---|
ID3v1MetadataResource(java.io.RandomAccessFile file)
Construct with a RandomAccessFile. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getValue(java.lang.String key,
java.util.Locale locale)
Get a single metadata value based on an arbitrary key. |
protected void |
parseFile(java.io.RandomAccessFile file)
Parse ID3v1 metadata from a file. |
| Methods inherited from class magoffin.matt.meta.support.AbstractEnumMetadataResource |
|---|
addError, addValue, getValue, getValues, setValue, setValues |
| Methods inherited from class magoffin.matt.meta.support.AbstractMetadataResource |
|---|
addError, addValue, clearValues, getParsedKeys, getParseErrors, getValueList, getValues, setValue, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface magoffin.matt.meta.audio.AudioMetadataResource |
|---|
getValue, getValues |
| Methods inherited from interface magoffin.matt.meta.MetadataResource |
|---|
getParsedKeys, getParseErrors, getValues |
| Constructor Detail |
|---|
public ID3v1MetadataResource(java.io.RandomAccessFile file)
throws java.io.IOException
file - the file
java.io.IOException - if an error occurs| Method Detail |
|---|
protected void parseFile(java.io.RandomAccessFile file)
throws java.io.IOException
file - the file
java.io.IOException - if an IO error occurs
public java.lang.Object getValue(java.lang.String key,
java.util.Locale locale)
MetadataResourceKeys are implementation specific. If more than one metadata of the specified key is available, this will return the first available one.
An optional Locale parameter may be provided. Some metadata values might have Locale-specific variations. The Locale parameter may be null in which case the platform's default Locale will be used.
getValue in interface MetadataResourcegetValue in class AbstractMetadataResourcekey - the keylocale - a Locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||