| java.lang.Object org.zkoss.sound.AAudio
AAudio | public class AAudio implements Audio(Code) | | Represents an audio.
Unlike javax.sound.AudioClip, this class is used only to hold the raw
data as opaque rather than manilupate the sound.
In other words, it is used to retrieve and store the opaque data
as polymorphic thru the
org.zkoss.util.media.Media interface.
author: tomyeh |
Constructor Summary | |
public | AAudio(String name, byte[] data) | public | AAudio(String name, InputStream isdata) Creates an instance of an audio with an input stream. | public | AAudio(URL url) Constructs an audio with an URL. | public | AAudio(File file) Constructs an audio with a file. | public | AAudio(String filename) Constructs an audio with a file name. | public | AAudio(InputStream is) Creates an instance of an audio with an input stream. |
DYNAMIC_STREAM | final protected static InputStream DYNAMIC_STREAM(Code) | | Used if you want to implement a meida whose input stream is created
dynamically each time
AAudio.getStreamData is called.
See Also: #AAudio(String,,InputStream) |
getByteData | public byte[] getByteData()(Code) | | |
getReaderData | final public Reader getReaderData()(Code) | | Not supported. It always throws IllegalStateException.
|
getStringData | final public String getStringData()(Code) | | Always throws IllegalStateException.
|
inMemory | final public boolean inMemory()(Code) | | |
isBinary | final public boolean isBinary()(Code) | | |
|
|