public interface Modem
| Modifier and Type | Interface and Description |
|---|---|
static class |
Modem.CallState
The state of the modem
|
static class |
Modem.ModemCapabilities |
| Modifier and Type | Field and Description |
|---|---|
static char |
EOF
Clrl+Z for finishing prompt (gsm sm useage) also known as end of file.
|
static final char EOF
int getDefaultWaitTime()
int getDefaultTrys()
boolean isIdle()
void parsedResultCode(Parser parser, ResultCodeToken r)
void parsedPrompt(Parser parser)
void parsedRing(Parser parser)
boolean init()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionboolean init(String... initStrings) throws IOException, InterruptedException
IOExceptionInterruptedExceptionvoid removeIncommingCallHandler(CallHandler callHandler)
void setIncommingCallHandler(CallHandler callHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionboolean sendAndWaitForOK(String cmdLine) throws IOException, InterruptedException
IOExceptionInterruptedExceptionboolean sendAndWaitForOK(String cmdLine, int trys, int waitTime) throws IOException, InterruptedException
IOExceptionInterruptedExceptionboolean sendCommandLineWithPrompt(String command, String data) throws IOException, InterruptedException
IOExceptionInterruptedExceptionString[] sendAndEctractData(String cmdLine) throws IOException, InterruptedException
IOExceptionInterruptedExceptionString[] sendAndEctractData(String cmdLine, int trys, int waitTime) throws IOException, InterruptedException
IOExceptionInterruptedExceptionvoid setRingListener(RingListener ringListener)
void setModemInputStream(InputStream inputStream)
void setModemOutputStream(OutputStream outputStream)
boolean isGsmExtention()
boolean isVoiceExtention()
boolean isFaxExtention()
GsmExtention getGsmExtention()
void setGsmExtention(GsmExtention gsmExtention)
VoiceExtention getVoiceExtention()
void setVoiceExtention(VoiceExtention voiceExtention)
FaxExtention getFaxExtention()
void setFaxExtention(FaxExtention faxExtention)
Connection dial(String number) throws IOException, InterruptedException
IOExceptionInterruptedExceptionvoid dial(String number, CallHandler waitingOutgoingCall) throws IOException, InterruptedException
IOExceptionInterruptedExceptionvoid setSpeaker()
boolean reset()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionString getAutomaticAnswer() throws IOException, InterruptedException
IOExceptionInterruptedExceptionString getCommandLineTerminationCharacter() throws IOException, InterruptedException
IOExceptionInterruptedExceptionString getResponseFormattingChar() throws IOException, InterruptedException
IOExceptionInterruptedExceptionString getCommandLineEditingChar() throws IOException, InterruptedException
IOExceptionInterruptedExceptionString getModulationSelection() throws IOException, InterruptedException
IOExceptionInterruptedExceptionString getManufacturerId() throws IOException, InterruptedException
IOExceptionInterruptedExceptionString getModelId() throws IOException, InterruptedException
IOExceptionInterruptedExceptionString getRevisionId() throws IOException, InterruptedException
IOExceptionInterruptedExceptionString getSerialNumber() throws IOException, InterruptedException
IOExceptionInterruptedExceptionString getObjectId() throws IOException, InterruptedException
IOExceptionInterruptedExceptionModem.ModemCapabilities[] getCapabilities() throws IOException, InterruptedException
IOExceptionInterruptedExceptionString getCountryOfInstallation() throws IOException, InterruptedException
IOExceptionInterruptedExceptionvoid setInitStrings(String... initStrings)
String[] getInitStrings()
boolean hangUp()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionboolean close()
void reenterDataMode()
Copyright © 2009–2015 atmodem4j. All rights reserved.