com.pelzer.util.mp3
Class MP3AudioOnlyInputStream
java.lang.Object
java.io.InputStream
com.pelzer.util.mp3.MP3AudioOnlyInputStream
- All Implemented Interfaces:
- Closeable
public class MP3AudioOnlyInputStream
- extends InputStream
This class takes the given stream or file and strips the ID3v2.x tags from it, returning only the
audio content. If you do not pass in a BufferedInputStream, this class will wrap your
passed in stream.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MP3AudioOnlyInputStream
public MP3AudioOnlyInputStream(File inFile)
throws FileNotFoundException
- Throws:
FileNotFoundException
MP3AudioOnlyInputStream
public MP3AudioOnlyInputStream(InputStream in)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
- Throws:
IOException
Copyright © 2012. All Rights Reserved.