|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.slp.Opaque
SLPv2 Opaque attribute
from RFC 2608 (Service Location Protocol, Version 2):
Opaque values are sequences of bytes. These are distinguished from Strings since they begin with the sequence "\FF". This, unescaped, is an illegal UTF-8 encoding, indicating that what follows is a sequence of bytes expressed in escape notation which constitute the binary value. For example, a '0' byte is encoded "\FF\00".
Constructor Summary | |
---|---|
Opaque(byte[] byteArray)
Constructs a newly allocated Opaque object |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
byte[] |
toByteArray()
Returns byte array represention of this object |
java.lang.String |
toString()
Returns a string representation of the object. |
static Opaque |
valueOf(java.lang.String string)
Returns a new Opaque object initialized to the value of the specified string. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Opaque(byte[] byteArray)
Opaque
object
java.lang.NullPointerException
- if byteArray is nullMethod Detail |
public boolean equals(java.lang.Object object)
Object.equals(java.lang.Object)
public int hashCode()
Object.hashCode()
public final java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
Object.clone()
public java.lang.String toString()
Object.toString()
public static Opaque valueOf(java.lang.String string) throws OpaqueFormatException
string
- string to be parsed
java.lang.NullPointerException
- if string is null
OpaqueFormatException
- if string is not a valid opaque stringpublic byte[] toByteArray()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |