com.pelzer.util.mp3
Class MP3AudioOnlyInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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.


Constructor Summary
MP3AudioOnlyInputStream(File inFile)
           
MP3AudioOnlyInputStream(InputStream in)
           
 
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

MP3AudioOnlyInputStream

public MP3AudioOnlyInputStream(File inFile)
                        throws FileNotFoundException
Throws:
FileNotFoundException

MP3AudioOnlyInputStream

public MP3AudioOnlyInputStream(InputStream in)
Method Detail

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.