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 TypeMethodDescriptionint
read16()
read16int
read24()
read24long
read32()
read32int
read8()
read8readAttributereadAttributeListList
<?> # of AttrAuths |(if present) Attribute Authentication Blocks...readServiceTypereadServTypeListreadStringreadStringListreadStringSetreadURL()
readUrlList
(List<Exception> 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:
ServiceLocationException
IOException
-
readStringSet
readStringSet- Returns:
- SortedSet of Strings
- Throws:
ServiceLocationException
IOException
-
readStringList
readStringList- Returns:
- List of Strings
- Throws:
ServiceLocationException
IOException
-
readAttribute
readAttribute- Returns:
- ServiceLocationAttribute
- Throws:
ServiceLocationException
IOException
-
readAttributeList
public List<ServiceLocationAttribute> readAttributeList() throws ServiceLocationException, IOExceptionreadAttributeList- Returns:
- List of ServiceLocationAttributes
- Throws:
ServiceLocationException
IOException
-
readAuthBlockList
# of AttrAuths |(if present) Attribute Authentication Blocks...- Returns:
- null
- Throws:
ServiceLocationException
IOException
-
readURL
- Returns:
- ServiceURL
- Throws:
ServiceLocationException
IOException
-
readUrlList
public List<ServiceURL> readUrlList(List<Exception> pURLExceptions) throws ServiceLocationException, IOException readUrlList- Parameters:
pURLExceptions
-- Returns:
- List of valid ServiceURLs
- Throws:
ServiceLocationException
IOException
- Add URL to list only if it is valid URL i.e. no exception is thrown by parser
-
readServiceType
readServiceType- Returns:
- ServiceType
- Throws:
ServiceLocationException
IOException
-
readServTypeList
readServTypeList- Returns:
- List of ServiceTypes
- Throws:
ServiceLocationException
IOException
-
read8
read8- Returns:
- int
- Throws:
ServiceLocationException
IOException
-
read16
read16- Returns:
- int
- Throws:
ServiceLocationException
IOException
-
read24
read24- Returns:
- int
- Throws:
ServiceLocationException
IOException
-
read32
read32- Returns:
- long
- Throws:
ServiceLocationException
IOException
-