public class Parser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Parser.ParserState |
Modifier and Type | Field and Description |
---|---|
static String |
ONLINE_DATA_OMNLINE_COMMAND_INDICATOR |
Constructor and Description |
---|
Parser() |
Parser(InputStream is,
char cr,
char lf,
boolean rxtxTimeoutEnabled) |
Modifier and Type | Method and Description |
---|---|
void |
clearBuffer() |
String |
getBuffer() |
InputStream |
getConnectionInputStream() |
char |
getCR() |
String |
getEcho() |
InputStream |
getInputStream() |
char |
getLF() |
Modem |
getModem() |
ModemState |
getState() |
boolean |
isOnlineDataMode() |
void |
prepareOnlineHangup() |
void |
resetParser() |
void |
setInputStream(InputStream is) |
void |
setLineChars(char cr,
char lf) |
void |
setModem(Modem modem) |
void |
setOutputStream(InputStream os) |
void |
start() |
public static final String ONLINE_DATA_OMNLINE_COMMAND_INDICATOR
public Parser()
public Parser(InputStream is, char cr, char lf, boolean rxtxTimeoutEnabled)
public String getEcho()
public void resetParser()
public char getCR()
public char getLF()
public boolean isOnlineDataMode()
public void prepareOnlineHangup()
public void setModem(Modem modem)
public Modem getModem()
public void clearBuffer()
public InputStream getInputStream()
public void setInputStream(InputStream is)
is
- the is to setpublic void setOutputStream(InputStream os)
public void setLineChars(char cr, char lf)
lineEnd
- the lineEnd to setpublic void start()
public ModemState getState()
public InputStream getConnectionInputStream()
public String getBuffer()
Copyright © 2009–2015 atmodem4j. All rights reserved.