org.sblim.slp.internal.msg

Class SLPInputStream


public class SLPInputStream
extends java.lang.Object

Helps the parsing of the bytes of SLP messages.

Constructor Summary

SLPInputStream(DatagramPacket pPacket)
Ctor.
SLPInputStream(InputStream pInStr)
Ctor.
SLPInputStream(Socket pSock)
Ctor.
SLPInputStream(byte[] pBytes)
Ctor.
SLPInputStream(byte[] pBytes, int pOffset, int pLength)
Ctor.

Method Summary

int
read16()
read16
int
read24()
read24
long
read32()
read32
int
read8()
read8
ServiceLocationAttribute
readAttribute()
readAttribute
List
readAttributeList()
readAttributeList
List
readAuthBlockList()
# of AttrAuths |(if present) Attribute Authentication Blocks...
List
readServTypeList()
readServTypeList
ServiceType
readServiceType()
readServiceType
String
readString()
readString
List
readStringList()
readStringList
SortedSet
readStringSet()
readStringSet
ServiceURL
readURL()
List
readUrlList(List pURLExceptions)
readUrlList

Constructor Details

SLPInputStream

public SLPInputStream(DatagramPacket pPacket)
Ctor.
Parameters:
pPacket -

SLPInputStream

public SLPInputStream(InputStream pInStr)
Ctor.
Parameters:
pInStr -

SLPInputStream

public SLPInputStream(Socket pSock)
            throws IOException
Ctor.
Parameters:
pSock -

SLPInputStream

public SLPInputStream(byte[] pBytes)
Ctor.
Parameters:
pBytes -

SLPInputStream

public SLPInputStream(byte[] pBytes,
                      int pOffset,
                      int pLength)
Ctor.
Parameters:
pBytes -
pOffset -
pLength -

Method Details

read16

public int read16()
            throws ServiceLocationException,
                   IOException
read16
Returns:
int

read24

public int read24()
            throws ServiceLocationException,
                   IOException
read24
Returns:
int

read32

public long read32()
            throws ServiceLocationException,
                   IOException
read32
Returns:
long

read8

public int read8()
            throws ServiceLocationException,
                   IOException
read8
Returns:
int

readAttribute

public ServiceLocationAttribute readAttribute()
            throws ServiceLocationException,
                   IOException
readAttribute
Returns:
ServiceLocationAttribute

readAttributeList

public List readAttributeList()
            throws ServiceLocationException,
                   IOException
readAttributeList
Returns:
List of ServiceLocationAttributes

readAuthBlockList

public List readAuthBlockList()
            throws ServiceLocationException,
                   IOException
# of AttrAuths |(if present) Attribute Authentication Blocks...
Returns:
null

readServTypeList

public List readServTypeList()
            throws ServiceLocationException,
                   IOException
readServTypeList
Returns:
List of ServiceTypes

readServiceType

public ServiceType readServiceType()
            throws ServiceLocationException,
                   IOException
readServiceType
Returns:
ServiceType

readString

public String readString()
            throws ServiceLocationException,
                   IOException
readString
Returns:
String

readStringList

public List readStringList()
            throws ServiceLocationException,
                   IOException
readStringList
Returns:
List of Strings

readStringSet

public SortedSet readStringSet()
            throws ServiceLocationException,
                   IOException
readStringSet
Returns:
SortedSet of Strings

readURL

public ServiceURL readURL()
            throws ServiceLocationException,
                   IOException
Returns:
ServiceURL

readUrlList

public List readUrlList(List pURLExceptions)
            throws ServiceLocationException,
                   IOException
readUrlList
Returns:
List of valid ServiceURLs

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.