|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.util.IButton
public class IButton
iButton container
Nested Class Summary | |
---|---|
static class |
IButton.DisplayFormat
DisplayFormat Enumeration |
Constructor Summary | |
---|---|
IButton(long value)
Constructor. |
|
IButton(long value,
boolean bigEndian)
Constructor. |
|
IButton(java.lang.String value)
Constructor. |
Method Summary | |
---|---|
static java.lang.String |
ConvertToBigEndianID(java.lang.String value)
|
static java.lang.String |
GetDisplayFormatDescription(IButton.DisplayFormat df,
java.util.Locale locale)
Gets the String representation of the specified DisplayFormat. |
static IButton.DisplayFormat |
getDisplayFormatFromName(java.lang.String stn,
IButton.DisplayFormat dft)
Gets the DisplayFormat enumeration value from the specified name |
long |
getValue()
Gets the iButton tag value (Little-Endian format) |
long |
getValue(boolean bigEndian)
Gets the iButton tag value |
boolean |
isValid()
Returns true if this instance contains a valid iButton tag value. |
static void |
main(java.lang.String[] argv)
|
java.lang.String |
toDecimalString()
Converts the iButton tag value to a 64-bit decimal String (Little-Endian format) |
java.lang.String |
toDecimalString(boolean bigEndian)
Converts the iButton tag value to a 64-bit decimal String |
java.lang.String |
toHexString()
Converts the iButton tag value to a 64-bit hex String (Big-Endian format) (this format typically matches the hex value displayed on the iButton device) |
java.lang.String |
toHexString(boolean bigEndian)
Converts the iButton tag value to a 64-bit hex String (Big-Endian format) (this format typically matches the hex value displayed on the iButton device) |
java.lang.String |
toHexString48()
Extract the middle 48-bits of the iButton tag value and returns it as a 48-bit hex String (Big-Endian format). |
java.lang.String |
toHexString48(boolean bigEndian)
Extract the middle 48-bits of the iButton tag value and returns it as a 48-bit hex String. |
java.lang.String |
toString()
Returns the 64-bit hex String iButton tag value |
java.lang.String |
toString(IButton.DisplayFormat df)
Returns the String representation of this iButton value in the specified DisplayFormat. |
static java.lang.String |
toString(long value,
IButton.DisplayFormat st)
Converts the specified iButton value into a String value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IButton(long value)
value
- The 64-bit iButton value (in Little-Endian format)public IButton(long value, boolean bigEndian)
value
- The 64-bit iButton value.bigEndian
- True if the specified value is in Big-Endian format, false if Little-Endian.public IButton(java.lang.String value)
isValid()
"
should be called to verify that this iButton value is valid.
Method Detail |
---|
public static IButton.DisplayFormat getDisplayFormatFromName(java.lang.String stn, IButton.DisplayFormat dft)
public static java.lang.String GetDisplayFormatDescription(IButton.DisplayFormat df, java.util.Locale locale)
public static java.lang.String ConvertToBigEndianID(java.lang.String value)
public boolean isValid()
public long getValue()
public long getValue(boolean bigEndian)
bigEndian
- True to return as a Big-Endian valuepublic java.lang.String toDecimalString(boolean bigEndian)
public java.lang.String toDecimalString()
public java.lang.String toHexString(boolean bigEndian)
public java.lang.String toHexString()
public java.lang.String toHexString48()
public java.lang.String toHexString48(boolean bigEndian)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(IButton.DisplayFormat df)
public static java.lang.String toString(long value, IButton.DisplayFormat st)
value
- The iButton valuest
- The display format
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |