javazoom.jl.player
Class jlp
java.lang.Object
javazoom.jl.player.jlp
public class jlp
- extends Object
The jlp class implements a simple command-line
player for MPEG audio files.
- Author:
- Mat McGowan (mdm@techie.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jlp
public jlp(String filename)
main
public static void main(String[] args)
createInstance
public static jlp createInstance(String[] args)
init
protected void init(String filename)
parseArgs
protected boolean parseArgs(String[] args)
showUsage
public void showUsage()
play
public void play()
throws JavaLayerException
- Throws:
JavaLayerException
getURLInputStream
protected InputStream getURLInputStream()
throws Exception
- Playing file from URL (Streaming).
- Throws:
Exception
getInputStream
protected InputStream getInputStream()
throws IOException
- Playing file from FileInputStream.
- Throws:
IOException
getAudioDevice
protected AudioDevice getAudioDevice()
throws JavaLayerException
- Throws:
JavaLayerException
Copyright © 2012. All Rights Reserved.