org.sblim.slp.internal.msg

Class SLPOutputStream

public class SLPOutputStream extends Object

SLPOutputStream helps the building of SLP message bytes
Field Summary
static intURL_HDR_LENGTH
URL_HDR_LENGTH
Constructor Summary
SLPOutputStream()
Ctor.
SLPOutputStream(int pStreamLimit)
Ctor.
Method Summary
intfreeSpace()
freeSpace
intsize()
size
byte[]toByteArray()
toByteArray
booleanwrite(byte[] pBytes)
write
booleanwrite(ServiceType pServType)
write
booleanwrite(ServiceURL pURL)
booleanwrite(String pStr)
write
booleanwrite(String pStr, String pReservedChars)
write
booleanwrite16(int pValue)
write16
booleanwrite24(int pValue)
write24
booleanwrite32(long pValue)
write32
booleanwrite8(int pValue)
write8
booleanwriteAttributeList(List<?> pAttrList)
writeAttributeList
booleanwriteAttributeList(Iterator<?> pAttrItr)
writeAttributeList
booleanwriteAuthBlockList(List<?> pAuthBlockList)
# of AttrAuths |(if present) Attribute Authentication Blocks...
voidwriteNoChk(byte[] pBytes)
writeNoChk
voidwriteNoChk16(int pValue)
writeNoChk16
voidwriteNoChk24(int pValue)
writeNoChk24
voidwriteNoChk32(long pValue)
writeNoChk32
voidwriteNoChk8(int pValue)
writeNoChk8
booleanwriteServTypeList(List<?> pServTypeList)
writeServTypeList
booleanwriteServTypeList(Iterator<?> pServTypeItr)
writeServTypeList
booleanwriteStringList(List<String> pStrList)
writeStringList
booleanwriteStringList(Iterator<String> pStrListItr)
writeStringList
booleanwriteStringList(List<String> pStrList, String pReservedChars)
writeStringList
booleanwriteStringList(Iterator<String> pStrListItr, String pReservedChars)
writeStringList

Field Detail

URL_HDR_LENGTH

public static final int URL_HDR_LENGTH
URL_HDR_LENGTH

Constructor Detail

SLPOutputStream

public SLPOutputStream()
Ctor.

SLPOutputStream

public SLPOutputStream(int pStreamLimit)
Ctor.

Parameters: pStreamLimit

Method Detail

freeSpace

public int freeSpace()
freeSpace

Returns: int

size

public int size()
size

Returns: int

toByteArray

public byte[] toByteArray()
toByteArray

Returns: byte[]

write

public boolean write(byte[] pBytes)
write

Parameters: pBytes

Returns: boolean

write

public boolean write(ServiceType pServType)
write

Parameters: pServType

Returns: boolean

write

public boolean write(ServiceURL pURL)

Parameters: pURL

Returns: boolean

write

public boolean write(String pStr)
write

Parameters: pStr

Returns: boolean

write

public boolean write(String pStr, String pReservedChars)
write

Parameters: pStr pReservedChars

Returns: boolean

write16

public boolean write16(int pValue)
write16

Parameters: pValue

Returns: boolean

write24

public boolean write24(int pValue)
write24

Parameters: pValue

Returns: boolean

write32

public boolean write32(long pValue)
write32

Parameters: pValue

Returns: boolean

write8

public boolean write8(int pValue)
write8

Parameters: pValue

Returns: boolean

writeAttributeList

public boolean writeAttributeList(List<?> pAttrList)
writeAttributeList

Parameters: pAttrList

Returns: boolean

writeAttributeList

public boolean writeAttributeList(Iterator<?> pAttrItr)
writeAttributeList

Parameters: pAttrItr

Returns: boolean

writeAuthBlockList

public boolean writeAuthBlockList(List<?> pAuthBlockList)
# of AttrAuths |(if present) Attribute Authentication Blocks...

Parameters: pAuthBlockList

Returns: boolean

writeNoChk

public void writeNoChk(byte[] pBytes)
writeNoChk

Parameters: pBytes

writeNoChk16

public void writeNoChk16(int pValue)
writeNoChk16

Parameters: pValue

writeNoChk24

public void writeNoChk24(int pValue)
writeNoChk24

Parameters: pValue

writeNoChk32

public void writeNoChk32(long pValue)
writeNoChk32

Parameters: pValue

writeNoChk8

public void writeNoChk8(int pValue)
writeNoChk8

Parameters: pValue

writeServTypeList

public boolean writeServTypeList(List<?> pServTypeList)
writeServTypeList

Parameters: pServTypeList

Returns: boolean

writeServTypeList

public boolean writeServTypeList(Iterator<?> pServTypeItr)
writeServTypeList

Parameters: pServTypeItr

Returns: boolean

writeStringList

public boolean writeStringList(List<String> pStrList)
writeStringList

Parameters: pStrList

Returns: boolean

writeStringList

public boolean writeStringList(Iterator<String> pStrListItr)
writeStringList

Parameters: pStrListItr

Returns: boolean

writeStringList

public boolean writeStringList(List<String> pStrList, String pReservedChars)
writeStringList

Parameters: pStrList pReservedChars

Returns: boolean

writeStringList

public boolean writeStringList(Iterator<String> pStrListItr, String pReservedChars)
writeStringList

Parameters: pStrListItr pReservedChars

Returns: true if all list items are written to the stream, otherwise false

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