TWspHeaderSegmenter Class Reference
class TWspHeaderSegmenter
|
TWspHeaderSegmenter
segments a WSP buffer into WSP header/value pairs. It detects boundaries between header/values based on the WAP-WSP spec.
-
To construct, buffer and string pool is passed in
-
Call to
NextL()
to iterate through the buffer - this returns a
TWspField
-
NextL()
returns KErrNotFound when done
Constructor & Destructor Documentation
TWspHeaderSegmenter(RStringPool, const TStringTable &, TPtrC8)
Constructor
-
Pre-condition
-
The string table must be opened with the WSP Sting constants table
Parameters
RStringPool
aPool
|
In - an opened RStringPool - owned by the caller
|
const
TStringTable
& aStringTable
|
In - the string table in the string pool to use
|
TPtrC8
aBuffer
|
In - the buffer containing the WSP header data - owned by the caller
|
Member Functions Documentation
NextL(TWspField &)
NextL iterates through the buffer. Each call returns a
TWspField
in the paramater.
Parameters
TWspField
& aWspHeader
|
Out - a TWspField containing the header <name,value> pair.
|
Offset()
TInt
|
Offset
|
(
|
)
|
const [inline]
|
Offset returns the current offset into the buffer being parsed.
Member Data Documentation
TPtrC8
iBuffer
Raw buffer that will be segmented - Not Owned
TInt
iOffset
Segment offset into the buffer.
RStringPool
iPool
Opened string pool to use with the string table already loaded - Not Owned
const TStringTable & iStringTable
The string table to use in the string pool - Not Owned
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.