Public 成员函数 | |
| SettingsReadWrite (IComm connection) | |
| 必须传入一个已打开的 comm 连接,并且该连接在监听来自印表机的未请求讯息时保持打开。 更多... | |
| SettingsReadWrite (JsonComm mgmtComm) | |
| 当已有用于监听管理讯息的 mgmt comm 对象存在时,调用此构造函数。 更多... | |
| SettingsReadWrite (String commDescriptor) | |
| 当创建由 SDK 管理的连接时调用的构造函数。 更多... | |
| void | close () throws Exception |
| void | Dispose () |
| Map< String, Setting > | GetAllProperties () |
| 继承自 ISettingsReadWrite.GetAllProperties | |
| Map< String, String > | GetAllValues () |
| 继承自 ISettingsReadWrite.GetAllValues | |
| Map< String, Setting > | GetProperties (List< String > keys) |
| 继承自 ISettingsReadWrite.GetProperties | |
| Setting | GetProperties (String key) |
| 继承自 ISettingsReadWrite.GetProperties | |
| String | GetValue (String key) |
| 继承自 ISettingsReadWrite.GetValue | |
| Map< String, String > | GetValues (List< String > keys) |
| 继承自 ISettingsReadWrite.GetValues | |
| boolean | SetValue (String keyToSet, String valueToSet) |
| 继承自 ISettingsReadWrite.SetValue | |
| boolean | SetValues (Map< String, String > keysToSet) |
| 继承自 ISettingsReadWrite.SetValues | |
Protected 成员函数 | |
| void | Dispose (boolean disposing) |
| void | finalize () throws Throwable |
| SettingsReadWrite | ( | IComm | connection | ) |
必须传入一个已打开的 comm 连接,并且该连接在监听来自印表机的未请求讯息时保持打开。
需要连接来发送/接收印表机状态讯息。
| SettingsReadWrite | ( | JsonComm | mgmtComm | ) |
当已有用于监听管理讯息的 mgmt comm 对象存在时,调用此构造函数。
每台印表机一个 JsonComm 对象,负责监听并解析完整的管理讯息并转发给所有管理讯息监听者。
| SettingsReadWrite | ( | String | commDescriptor | ) |
当创建由 SDK 管理的连接时调用的构造函数。
commDescriptor 是用于连接印表机的通信描述符。
TCP 描述符格式:"ip" 或 "ip:port"
例如:"127.0.0.1" 或 "127.0.0.1:3007"
如果未提供端口,则使用默认值。