|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
net.shredzone.ifish.ltr
Class LTRFactory
java.lang.Objectnet.shredzone.ifish.ltr.LTRFactory
public class LTRFactory
- extends Object
This is a factory class for LTR objects. The create method
will convert a File into an LTR object according to the file content.
- Version:
- $Id: LTRFactory.java 289 2009-04-28 21:21:46Z shred $
| Constructor Summary | |
|---|---|
LTRFactory()
|
|
| Method Summary | |
|---|---|
LTR |
create(File file)
Create an LTR object for a file. |
String |
getID3v1Charset()
Get the Charset for decoding MP3 ID3v1 tags. |
String |
getID3v2Charset()
Get the Charset for decoding MP3 ID3v2 tags. |
void |
setID3v1Charset(String charset)
Set the Charset for decoding MP3 ID3v1 tags. |
void |
setID3v2Charset(String charset)
Set the Charset for decoding MP3 ID3v2 tags. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
LTRFactory
public LTRFactory()
| Method Detail |
|---|
create
public LTR create(File file) throws IOException
- Create an LTR object for a file. If the file given, was not
recognized or did not contain any tags, null will be returned.
- Parameters:
file- File to open- Returns:
- LTR to this file, or null
- Throws:
IOException- Description of the Exception
setID3v1Charset
public void setID3v1Charset(String charset)
- Set the Charset for decoding MP3 ID3v1 tags.
- Parameters:
charset- Charset to be used
getID3v1Charset
public String getID3v1Charset()
- Get the Charset for decoding MP3 ID3v1 tags. This is "ISO-8859-1"
by default.
- Returns:
- Charset to be used.
setID3v2Charset
public void setID3v2Charset(String charset)
- Set the Charset for decoding MP3 ID3v2 tags.
- Parameters:
charset- Charset to be used
getID3v2Charset
public String getID3v2Charset()
- Get the Charset for decoding MP3 ID3v2 tags. This is "ISO-8859-1"
by default.
- Returns:
- Charset to be used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2007-2011 shredzone.org. All Rights Reserved.
net.shredzone.ifish.ltr.LTRFactory