|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openuat.channel.oob.j2me.J2MEAudioChannel
public class J2MEAudioChannel
Implements the audio out of band channel for mobile devices.
| Field Summary |
|---|
| Fields inherited from interface org.openuat.authentication.OOBChannel |
|---|
AUDIO_CHANNEL, BUTTON_CHANNEL, VIDEO_CHANNEL |
| Constructor Summary | |
|---|---|
J2MEAudioChannel(javax.microedition.lcdui.Display display,
javax.microedition.lcdui.Displayable homeScreen,
int volume)
|
|
| Method Summary | |
|---|---|
void |
capture()
|
void |
commandAction(javax.microedition.lcdui.Command com,
javax.microedition.lcdui.Displayable dis)
|
void |
decodeAudio(byte[] audiodata)
Starts the thread that decodes the recorded hapadep sound. |
byte[] |
finishCapturing()
Stop the microphone and the recording. |
void |
handleAudioDecodedText(byte[] retrieved)
Called by the DecoderThread when decoding of the recorded sound finished. |
void |
setOOBMessageHandler(OOBMessageHandler messageHandler)
|
void |
transmit(byte[] message)
Encodes the message in audio format and plays it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public J2MEAudioChannel(javax.microedition.lcdui.Display display,
javax.microedition.lcdui.Displayable homeScreen,
int volume)
| Method Detail |
|---|
public void commandAction(javax.microedition.lcdui.Command com,
javax.microedition.lcdui.Displayable dis)
commandAction in interface javax.microedition.lcdui.CommandListenerpublic void decodeAudio(byte[] audiodata)
audiodata - public byte[] finishCapturing()
public void handleAudioDecodedText(byte[] retrieved)
retrieved - The decoded content.public void setOOBMessageHandler(OOBMessageHandler messageHandler)
setOOBMessageHandler in interface OOBChannelpublic void transmit(byte[] message)
transmit in interface OOBChannelpublic void capture()
capture in interface OOBChannel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||