public class jlp extends Object
jlp class implements a simple command-line
player for MPEG audio files.| Modifier and Type | Method and Description |
|---|---|
static jlp |
createInstance(String[] args) |
protected AudioDevice |
getAudioDevice() |
protected InputStream |
getInputStream()
Playing file from FileInputStream.
|
protected InputStream |
getURLInputStream()
Playing file from URL (Streaming).
|
protected void |
init(String filename) |
static void |
main(String[] args) |
protected boolean |
parseArgs(String[] args) |
void |
play() |
void |
showUsage() |
public jlp(String filename)
public static void main(String[] args)
protected void init(String filename)
protected boolean parseArgs(String[] args)
public void showUsage()
public void play()
throws JavaLayerException
JavaLayerExceptionprotected InputStream getURLInputStream() throws Exception
Exceptionprotected InputStream getInputStream() throws IOException
IOExceptionprotected AudioDevice getAudioDevice() throws JavaLayerException
JavaLayerExceptionCopyright © 2016. All Rights Reserved.