public class JOrbisComment extends Object
Modifier and Type | Field and Description |
---|---|
(package private) String |
album_ |
(package private) String |
artist_ |
(package private) String |
artistAlbumTrackNum_ |
(package private) String |
artistAlbumTrackTitle_ |
private static int |
CHUNKSIZE
Description of the Field
|
(package private) String |
genre_ |
(package private) File |
inFile
Description of the Field
|
private int |
RAND_HASH_ |
(package private) State |
state
Description of the Field
|
(package private) String |
title_ |
(package private) String |
tracknumber_ |
Constructor and Description |
---|
JOrbisComment()
Constructor for the JOrbisComment object
|
JOrbisComment(File inFile)
Constructor for the JOrbisComment object
|
JOrbisComment(InputStream vorbisStream)
Constructor for the JOrbisComment object
|
JOrbisComment(State state)
Constructor for the JOrbisComment object
|
Modifier and Type | Method and Description |
---|---|
void |
flush()
flushes its objects to reease memory
|
String |
getAlbum()
Gets the album attribute of the JOrbisComment object.
|
String |
getArtist()
Gets the artist attribute of the JOrbisComment object.
|
String |
getArtistAlbumTrackNum()
Gets a concatenation of Artist Album and Track# Comment for this ogg vorbis file.
|
String |
getArtistAlbumTrackTitle()
Gets a concatenation of Artist Album and Track Title Comment for this ogg vorbis file.
|
String |
getComment(String field)
Gets the comment attribute of the JOrbisComment object.
|
String |
getComment(String field,
boolean smart)
Gets the comment attribute of the JOrbisComment object.
|
String |
getDate()
Gets the date attribute of the JOrbisComment object.
|
String |
getGenre()
Gets the genre attribute of the JOrbisComment object.
|
String |
getMusicBrainzDiscID()
Gets the MusicBrainz DiscID attribute of the JOrbisComment object.
|
String |
getTitle()
Gets the title attribute of the JOrbisComment object.
|
String |
getTracknumber()
Gets the tracknumber attribute of the JOrbisComment object.
|
String |
getTrackTotal()
Gets the tracktotal attribute of the JOrbisComment object.
|
static void |
main(String[] arg)
The main program for the JOrbisComment class.
|
boolean |
read()
Reads from this classes inputstream
|
boolean |
read(InputStream in)
Description of the Method
|
boolean |
readInFile()
Reads from the classes inFile
|
boolean |
setAlbum(String value) |
boolean |
setArtist(String value) |
boolean |
setComment(String field,
String value)
Sets a comment attribute of the JOrbisComment object BUT does not write to file.
|
boolean |
setGenre(String value) |
boolean |
setTitle(String value) |
boolean |
setTracknumber(String value) |
boolean |
setTrackTotal(String value) |
static String |
usage() |
(package private) int |
write()
Writes (persists) the JOrbisComment object comments to the original file.
|
(package private) int |
write(OutputStream out)
Writes (persists) the JOrbisComment object comments to the outputstream.
|
private static int CHUNKSIZE
private final int RAND_HASH_
String tracknumber_
String artistAlbumTrackNum_
String artistAlbumTrackTitle_
public JOrbisComment()
public JOrbisComment(State state)
state
- Description of the Parameterpublic JOrbisComment(File inFile)
inFile
- inits and reads the passed filepublic JOrbisComment(InputStream vorbisStream)
vorbisStream
- inits and reads the passed inStreampublic void flush()
public static void main(String[] arg)
arg
- The command line argumentspublic boolean setTracknumber(String value)
public boolean setTrackTotal(String value)
public boolean setComment(String field, String value)
field
- ThSystem.out.printlne new comment valuevalue
- The new comment valuepublic String getComment(String field)
field
- Description of the Parameterpublic String getComment(String field, boolean smart)
smart
- flag if the Uppercase should be prioritized.field
- Description of the Parameterpublic String getArtistAlbumTrackNum()
public String getArtistAlbumTrackTitle()
public String getArtist()
public String getAlbum()
public String getTitle()
public String getTracknumber()
public String getTrackTotal()
public String getGenre()
public String getDate()
public String getMusicBrainzDiscID()
public boolean read()
public boolean readInFile()
public boolean read(InputStream in)
in
- Description of the Parameterint write()
int write(OutputStream out)
out
- Description of the ParameterWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses