|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.starmicronics.stario.StarBluetoothManager
public class StarBluetoothManager
| Nested Class Summary | |
|---|---|
static class |
StarBluetoothManager.StarBluetoothSecurity
|
static class |
StarBluetoothManager.StarBluetoothSettingCapability
|
static class |
StarBluetoothManager.StarDeviceType
|
| Constructor Summary | |
|---|---|
StarBluetoothManager(java.lang.String portName,
java.lang.String portSettings,
int timeoutMillis,
StarBluetoothManager.StarDeviceType starDeviceType)
The constructer of StarBluetoothManager |
|
| Method Summary | |
|---|---|
void |
apply()
This method is used in order to apply the value specified by the following methods. - setBluetoothDevice method - setiOSPortName method - setAutoConnect method - setPinCode method - setSecurityType method |
void |
close()
This method is used to close communication with the printer. |
boolean |
getAutoConnect()
Gets the auto connection setting. |
StarBluetoothManager.StarBluetoothSettingCapability |
getAutoConnectCapability()
|
java.lang.String |
getBluetoothDeviceName()
Gets the BluetoothDeviceName. |
StarBluetoothManager.StarBluetoothSettingCapability |
getBluetoothDeviceNameCapability()
|
StarBluetoothManager.StarDeviceType |
getDeviceType()
Gets the Bluetooth device type at constructer.(StarDeviceTypeDesktopPrinter or StarDeviceTypePortablePrinter). |
java.lang.String |
getiOSPortName()
Gets iOSPortName The current setting is read when the loadSetting method or setiOSPortName method is called. Set see com.StarMicronics.stario.StarBluetoothManager#setiOSPortName(String) |
StarBluetoothManager.StarBluetoothSettingCapability |
getiOSPortNameCapability()
|
boolean |
getPairingPermission()
|
StarBluetoothManager.StarBluetoothSettingCapability |
getPairingPermissionCapability()
|
java.lang.String |
getPinCode()
Gets the PIN code The current setting is read when the loadSetting method or setPinCode method is called. Set see com.StarMicronics.stario.StarBluetoothManager#setPinCode(String) |
StarBluetoothManager.StarBluetoothSettingCapability |
getPinCodeCapability()
|
java.lang.String |
getPortName()
Gets the specified port name at constructer. |
java.lang.String |
getPortSettings()
Gets the specified port settings at constructer. |
StarBluetoothManager.StarBluetoothSecurity |
getSecurityType()
Gets the Bluetooth security setting(SSP or PIN code mode). |
StarBluetoothManager.StarBluetoothSettingCapability |
getSecurityTypeCapability()
|
int |
getTimeoutMillis()
Gets the specified timeout at constructer. |
boolean |
isOpened()
Returns whether the port is opened. |
void |
loadSetting()
This method is used to load the Bluetooth device setting. |
void |
open()
This method is used to open connection to the Star Bluetooth printer. |
void |
setAutoConnect(boolean autoConnect)
Sets the auto connection setting. |
void |
setBluetoothDeviceName(java.lang.String bluetoothDeviceName)
Sets the bluetoothDeviceName. To set it, run the apply method after you change the values in the set method. Get see com.StarMicronics.stario.StarBluetoothManager#getBluetoothDeviceName() |
void |
setiOSPortName(java.lang.String iOSPortName)
Sets the iOSPortName To set it, run the apply method after you change the values in the set method. Get see com.StarMicronics.stario.StarBluetoothManager#getiOSPortName() |
void |
setPairingPermission(boolean pairingPermission)
|
void |
setPinCode(java.lang.String pinCode)
Sets the PIN code of the Bluetooth interface. Set to null when the PIN code is not changed. Get see com.StarMicronics.stario.StarBluetoothManager#getPinCode() |
void |
setSecurityType(StarBluetoothManager.StarBluetoothSecurity securityType)
Sets the Bluetooth security setting(SSP or PIN code mode). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StarBluetoothManager(java.lang.String portName,
java.lang.String portSettings,
int timeoutMillis,
StarBluetoothManager.StarDeviceType starDeviceType)
throws StarIOPortException
PortName - Identifies the printer to use
| BlueTooth: Usage - | BT: | (finds and uses the first star BlueTooth printer paired with your device) | |
| BT:DeviceName | (eg, BT:StarMicronics) | ||
| BT:<MacAddress> | (eg, BT:00:12:3F:1D:FB:7B) |
PortSettings - The settings for the port
| BlueToothSettings: | "" - | Using a POSprinter and DK-AirCash (No portSettings are required when using other Interface and "SSP" by Bluetooth Interface.) | |
| ";p" - | Using a POSprinter and DK-AirCash(If use the "PIN Code" by Bluetooth Interface) | ||
| Examples: | "", ";p" |
timeoutMillis - The time out in milliseconds used when writing or reading from the portstarDeviceType - The type of the device to be connectedStarIOPortException - - If starDeviceType sets StarDeviceTypePortablePrinter, if the portName do not sets "BT:".| Method Detail |
|---|
public void open()
throws StarIOPortException
StarIOPortException - - If for some reason communication with the printer can't be established.
public void close()
throws StarIOPortException
StarIOPortException - - If for some reason communication with the printer can't be established.
public void apply()
throws StarIOPortException
StarIOPortException - - If for some reason communication with the printer can't be established, if the port is null, if when securityType set PINCODE, autoConnect set \"true\".
public void loadSetting()
throws StarIOPortException
StarIOPortException - - If for some reason communication with the printer can't be established, if the port is null.public StarBluetoothManager.StarBluetoothSettingCapability getBluetoothDeviceNameCapability()
public StarBluetoothManager.StarBluetoothSettingCapability getiOSPortNameCapability()
public StarBluetoothManager.StarBluetoothSettingCapability getPinCodeCapability()
public StarBluetoothManager.StarBluetoothSettingCapability getAutoConnectCapability()
public StarBluetoothManager.StarBluetoothSettingCapability getSecurityTypeCapability()
public StarBluetoothManager.StarBluetoothSettingCapability getPairingPermissionCapability()
public java.lang.String getBluetoothDeviceName()
setBluetoothDeviceName(String)
public void setBluetoothDeviceName(java.lang.String bluetoothDeviceName)
throws StarIOPortException
com.StarMicronics.stario.StarBluetoothManager#getBluetoothDeviceName()
bluetoothDeviceName - to set device
StarIOPortException - - If the parameter of bluetoothDeviceName is invalid character, if the length of bluetoothDeviceName is less than 1 and more than 16.public java.lang.String getiOSPortName()
com.StarMicronics.stario.StarBluetoothManager#setiOSPortName(String)
public void setiOSPortName(java.lang.String iOSPortName)
throws StarIOPortException
com.StarMicronics.stario.StarBluetoothManager#getiOSPortName()
port - name to use iOS device
StarIOPortException - - If the parameter of iOSPortName is invalid character, if the length of iOSPortName is less than 1 and more than 16.public java.lang.String getPinCode()
com.StarMicronics.stario.StarBluetoothManager#setPinCode(String)
public void setPinCode(java.lang.String pinCode)
throws StarIOPortException
com.StarMicronics.stario.StarBluetoothManager#getPinCode()
pinCode - to use pairing
StarIOPortException - - If the parameter of pinCode is invalid character, if the length of pinCode is less than 4 and more than 16.public boolean getAutoConnect()
com.StarMicronics.stario.StarBluetoothManager#setAutoConnect(boolean)
public void setAutoConnect(boolean autoConnect)
com.StarMicronics.stario.StarBluetoothManager#getAutoConnect()
autoConnet - public StarBluetoothManager.StarBluetoothSecurity getSecurityType()
com.StarMicronics.stario.StarBluetoothManager#setSecurityType(StarBluetoothSecurity)
public void setSecurityType(StarBluetoothManager.StarBluetoothSecurity securityType)
com.StarMicronics.stario.StarBluetoothManager#getSecurityType()
StarBluetoothManager.StarBluetoothSecurity. - public java.lang.String getPortName()
com.StarMicronics.stario.StarBluetoothManager#StarBluetoothManager(String portName, String portSettings, int timeoutMillis, StarDeviceType starDeviceType)
public java.lang.String getPortSettings()
com.StarMicronics.stario.StarBluetoothManager#StarBluetoothManager(String portName, String portSettings, int timeoutMillis, StarDeviceType starDeviceType)
public int getTimeoutMillis()
com.StarMicronics.stario.StarBluetoothManager#StarBluetoothManager(String portName, String portSettings, int timeoutMillis, StarDeviceType starDeviceType)
public StarBluetoothManager.StarDeviceType getDeviceType()
com.StarMicronics.stario.StarBluetoothManager#StarBluetoothManager(String portName, String portSettings, int timeoutMillis, StarDeviceType starDeviceType)
public boolean isOpened()
com.StarMicronics.stario.StarBluetoothManager#open()
public void setPairingPermission(boolean pairingPermission)
public boolean getPairingPermission()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||