|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
net.shredzone.ifish.db
Class DbEntry
java.lang.Objectnet.shredzone.ifish.db.Entry
net.shredzone.ifish.db.DbEntry
- All Implemented Interfaces:
- Serializable, Comparable<Entry>
public class DbEntry
- extends Entry
- implements Serializable
- extends Entry
This class represents an Entry which was read from the database.
- Version:
- $Id: DbEntry.java 291 2009-04-28 21:29:27Z shred $
- See Also:
- Serialized Form
| Constructor Summary | |
|---|---|
DbEntry(File base,
InputStream in,
String charset)
Create a new Entry from a file database entry. |
|
| Method Summary | |
|---|---|
String |
getAlbum()
Get the album of the track, as given by the file's tag. |
String |
getArtist()
Get the artist of the track, as given by the file's tag. |
File |
getFile()
Get the file behind this entry. |
String |
getFileName()
Get the file name of this entry. |
String |
getGenre()
Get the genre of the track, as given by the file's tag. |
String |
getTitle()
Get the title of the track, as given by the file's tag. |
| Methods inherited from class net.shredzone.ifish.db.Entry |
|---|
compareTo, equals, getBytesTerm, hashCode, size, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
DbEntry
public DbEntry(File base, InputStream in, String charset) throws IOException, UnsupportedEncodingException
- Create a new Entry from a file database entry.
- Parameters:
base- Base directoryin- Input stream within the database filecharset- Charset to be used for decoding- Throws:
IOExceptionUnsupportedEncodingException
| Method Detail |
|---|
getFile
public File getFile()
- Get the file behind this entry. Returns null if there is no matching
file in the file system.
- Returns:
- File represented by this entry
getFileName
public String getFileName()
- Get the file name of this entry. This is the path and file name
relative to the iHP root directory mount point, and always
using wrongslashes (even on unixoid systems).
- Specified by:
getFileNamein classEntry
- Returns:
- File name
getTitle
public String getTitle()
- Get the title of the track, as given by the file's tag. Does not
return null.
- Returns:
- Title
getArtist
public String getArtist()
- Get the artist of the track, as given by the file's tag. Does not
return null.
- Returns:
- Artist
getAlbum
public String getAlbum()
- Get the album of the track, as given by the file's tag. Does not
return null.
- Returns:
- Album
getGenre
public String getGenre()
- Get the genre of the track, as given by the file's tag. This is
always a word, not a number. Does not return null.
- Returns:
- Genre
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2007-2011 shredzone.org. All Rights Reserved.
