org.sblim.slp.internal.msg

Class SLPOutputStream


public class SLPOutputStream
extends java.lang.Object

SLPOutputStream helps the building of SLP message bytes

Field Summary

static int
URL_HDR_LENGTH
URL_HDR_LENGTH

Constructor Summary

SLPOutputStream()
Ctor.
SLPOutputStream(int pStreamLimit)
Ctor.

Method Summary

int
freeSpace()
freeSpace
int
size()
size
byte[]
toByteArray()
toByteArray
boolean
write(String pStr)
write
boolean
write(String pStr, String pReservedChars)
write
boolean
write(byte[] pBytes)
write
boolean
write(ServiceType pServType)
write
boolean
write(ServiceURL pURL)
boolean
write16(int pValue)
write16
boolean
write24(int pValue)
write24
boolean
write32(long pValue)
write32
boolean
write8(int pValue)
write8
boolean
writeAttributeList(Iterator pAttrItr)
writeAttributeList
boolean
writeAttributeList(List pAttrList)
writeAttributeList
boolean
writeAuthBlockList(List pAuthBlockList)
# of AttrAuths |(if present) Attribute Authentication Blocks...
void
writeNoChk(byte[] pBytes)
writeNoChk
void
writeNoChk16(int pValue)
writeNoChk16
void
writeNoChk24(int pValue)
writeNoChk24
void
writeNoChk32(long pValue)
writeNoChk32
void
writeNoChk8(int pValue)
writeNoChk8
boolean
writeServTypeList(Iterator pServTypeItr)
writeServTypeList
boolean
writeServTypeList(List pServTypeList)
writeServTypeList
boolean
writeStringList(Iterator pStrListItr)
writeStringList
boolean
writeStringList(Iterator pStrListItr, String pReservedChars)
writeStringList
boolean
writeStringList(List pStrList)
writeStringList
boolean
writeStringList(List pStrList, String pReservedChars)
writeStringList
boolean
writeURLList(List pURLList)
writeURLList

Field Details

URL_HDR_LENGTH

public static final int URL_HDR_LENGTH
URL_HDR_LENGTH
Field Value:
6

Constructor Details

SLPOutputStream

public SLPOutputStream()
Ctor.

SLPOutputStream

public SLPOutputStream(int pStreamLimit)
Ctor.
Parameters:
pStreamLimit -

Method Details

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(String pStr)
write
Parameters:
pStr -
Returns:
boolean

write

public boolean write(String pStr,
                     String pReservedChars)
write
Parameters:
pStr -
pReservedChars -
Returns:
boolean

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

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(Iterator pAttrItr)
writeAttributeList
Parameters:
pAttrItr -
Returns:
boolean

writeAttributeList

public boolean writeAttributeList(List pAttrList)
writeAttributeList
Parameters:
pAttrList -
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(Iterator pServTypeItr)
writeServTypeList
Parameters:
pServTypeItr -
Returns:
boolean

writeServTypeList

public boolean writeServTypeList(List pServTypeList)
writeServTypeList
Parameters:
pServTypeList -
Returns:
boolean

writeStringList

public boolean writeStringList(Iterator pStrListItr)
writeStringList
Parameters:
pStrListItr -
Returns:
boolean

writeStringList

public boolean writeStringList(Iterator pStrListItr,
                               String pReservedChars)
writeStringList
Parameters:
pStrListItr -
pReservedChars -
Returns:
true if all list items are written to the stream, otherwise false

writeStringList

public boolean writeStringList(List pStrList)
writeStringList
Parameters:
pStrList -
Returns:
boolean

writeStringList

public boolean writeStringList(List pStrList,
                               String pReservedChars)
writeStringList
Parameters:
pStrList -
pReservedChars -
Returns:
boolean

writeURLList

public boolean writeURLList(List pURLList)
writeURLList
Parameters:
pURLList -
Returns:
boolean

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