|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
com.pelzer.util.mp3.MP3RetaggingInputStream
public class MP3RetaggingInputStream
This class takes the given file or stream, strips ID3 information from it using
MP3AudioOnlyInputStream and then prepends its own replacement metadata to the stream. IF
YOU USE THIS CLASS, you must add JID3 to your classpath, as its scope is listed as 'provided'.
| Constructor Summary | |
|---|---|
MP3RetaggingInputStream(File source,
byte[] newID3ByteArray)
Takes the given file, strips it of its existing header and prepends the given byte array. |
|
MP3RetaggingInputStream(File source,
MP3Util.Metadata metadata)
Computes the new header and then calls MP3RetaggingInputStream(InputStream, byte[]) |
|
MP3RetaggingInputStream(InputStream in,
byte[] newID3ByteArray)
Takes the given stream, strips it of its existing header and prepends the given byte array. |
|
MP3RetaggingInputStream(InputStream in,
MP3Util.Metadata metadata)
Computes the new header and then calls MP3RetaggingInputStream(InputStream, byte[]) |
|
| Method Summary | |
|---|---|
void |
close()
|
static void |
main(String[] args)
|
int |
read()
|
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MP3RetaggingInputStream(InputStream in,
byte[] newID3ByteArray)
throws IOException
IOException
public MP3RetaggingInputStream(File source,
byte[] newID3ByteArray)
throws IOException
IOException
public MP3RetaggingInputStream(InputStream in,
MP3Util.Metadata metadata)
throws org.blinkenlights.jid3.ID3Exception,
IOException
MP3RetaggingInputStream(InputStream, byte[])
org.blinkenlights.jid3.ID3Exception
IOException
public MP3RetaggingInputStream(File source,
MP3Util.Metadata metadata)
throws org.blinkenlights.jid3.ID3Exception,
IOException
MP3RetaggingInputStream(InputStream, byte[])
org.blinkenlights.jid3.ID3Exception
IOException| Method Detail |
|---|
public static void main(String[] args)
throws Exception
Exception
public int read()
throws IOException
read in class InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||