Class SLPInputStream
java.lang.Object
org.sblim.slp.internal.msg.SLPInputStream
Helps the parsing of the bytes of SLP messages.
-
Constructor Summary
ConstructorsConstructorDescriptionSLPInputStream(byte[] pBytes) Ctor.SLPInputStream(byte[] pBytes, int pOffset, int pLength) Ctor.SLPInputStream(InputStream pInStr) Ctor.SLPInputStream(DatagramPacket pPacket) Ctor.SLPInputStream(Socket pSock) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionintread16()read16intread24()read24longread32()read32intread8()read8readAttributereadAttributeList# of AttrAuths |(if present) Attribute Authentication Blocks...readServiceTypereadServTypeListreadStringreadStringListreadStringSetreadURL()readUrlList(List pURLExceptions) readUrlList
-
Constructor Details
-
SLPInputStream
public SLPInputStream(byte[] pBytes) Ctor.- Parameters:
pBytes-
-
SLPInputStream
Ctor.- Parameters:
pSock-- Throws:
IOException
-
SLPInputStream
-
SLPInputStream
-
SLPInputStream
public SLPInputStream(byte[] pBytes, int pOffset, int pLength) Ctor.- Parameters:
pBytes-pOffset-pLength-
-
-
Method Details
-
readString
readString- Returns:
- String
- Throws:
ServiceLocationExceptionIOException
-
readStringSet
readStringSet- Returns:
- SortedSet of Strings
- Throws:
ServiceLocationExceptionIOException
-
readStringList
readStringList- Returns:
- List of Strings
- Throws:
ServiceLocationExceptionIOException
-
readAttribute
readAttribute- Returns:
- ServiceLocationAttribute
- Throws:
ServiceLocationExceptionIOException
-
readAttributeList
readAttributeList- Returns:
- List of ServiceLocationAttributes
- Throws:
ServiceLocationExceptionIOException
-
readAuthBlockList
# of AttrAuths |(if present) Attribute Authentication Blocks...- Returns:
- null
- Throws:
ServiceLocationExceptionIOException
-
readURL
- Returns:
- ServiceURL
- Throws:
ServiceLocationExceptionIOException
-
readUrlList
readUrlList- Returns:
- List of valid ServiceURLs
- Throws:
ServiceLocationExceptionIOException- Add URL to list only if it is valid URL i.e. no exception is thrown by parser
-
readServiceType
readServiceType- Returns:
- ServiceType
- Throws:
ServiceLocationExceptionIOException
-
readServTypeList
readServTypeList- Returns:
- List of ServiceTypes
- Throws:
ServiceLocationExceptionIOException
-
read8
read8- Returns:
- int
- Throws:
ServiceLocationExceptionIOException
-
read16
read16- Returns:
- int
- Throws:
ServiceLocationExceptionIOException
-
read24
read24- Returns:
- int
- Throws:
ServiceLocationExceptionIOException
-
read32
read32- Returns:
- long
- Throws:
ServiceLocationExceptionIOException
-