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
IOException
InterruptedException
boolean init(String... initStrings) throws IOException, InterruptedException
IOException
InterruptedException
void removeIncommingCallHandler(CallHandler callHandler)
void setIncommingCallHandler(CallHandler callHandler) throws IOException, InterruptedException
IOException
InterruptedException
boolean sendAndWaitForOK(String cmdLine) throws IOException, InterruptedException
IOException
InterruptedException
boolean sendAndWaitForOK(String cmdLine, int trys, int waitTime) throws IOException, InterruptedException
IOException
InterruptedException
boolean sendCommandLineWithPrompt(String command, String data) throws IOException, InterruptedException
IOException
InterruptedException
String[] sendAndEctractData(String cmdLine) throws IOException, InterruptedException
IOException
InterruptedException
String[] sendAndEctractData(String cmdLine, int trys, int waitTime) throws IOException, InterruptedException
IOException
InterruptedException
void 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
IOException
InterruptedException
void dial(String number, CallHandler waitingOutgoingCall) throws IOException, InterruptedException
IOException
InterruptedException
void setSpeaker()
boolean reset() throws IOException, InterruptedException
IOException
InterruptedException
String getAutomaticAnswer() throws IOException, InterruptedException
IOException
InterruptedException
String getCommandLineTerminationCharacter() throws IOException, InterruptedException
IOException
InterruptedException
String getResponseFormattingChar() throws IOException, InterruptedException
IOException
InterruptedException
String getCommandLineEditingChar() throws IOException, InterruptedException
IOException
InterruptedException
String getModulationSelection() throws IOException, InterruptedException
IOException
InterruptedException
String getManufacturerId() throws IOException, InterruptedException
IOException
InterruptedException
String getModelId() throws IOException, InterruptedException
IOException
InterruptedException
String getRevisionId() throws IOException, InterruptedException
IOException
InterruptedException
String getSerialNumber() throws IOException, InterruptedException
IOException
InterruptedException
String getObjectId() throws IOException, InterruptedException
IOException
InterruptedException
Modem.ModemCapabilities[] getCapabilities() throws IOException, InterruptedException
IOException
InterruptedException
String getCountryOfInstallation() throws IOException, InterruptedException
IOException
InterruptedException
void setInitStrings(String... initStrings)
String[] getInitStrings()
boolean hangUp() throws IOException, InterruptedException
IOException
InterruptedException
boolean close()
void reenterDataMode()
Copyright © 2009–2015 atmodem4j. All rights reserved.