公開方法(Public Methods) | |
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 Methods) | |
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"
如果未提供端口,則使用預設值。