PHP Class Horde_Xml_Wbxml_Decoder, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Anthony Mills ([email protected])
Inheritance: extends Horde_Xml_Wbxml_ContentHandler
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_attributeDTD
$_ch Currently just outputs raw XML.
$_dpi Document Public Identifier Used with dpiType.
$_dtdManager Horde_Xml_Wbxml_DtdManager The DTD Manager.
$_error
$_isAttribute
$_isData
$_prevAttributeDTD
$_stringTable String table as defined in 5.7
$_strpos integer The string position.
$_tagDTD
$_tagStack State variables.

Méthodes publiques

Méthode Description
__construct ( ) Constructor.
decode ( string $wbxml ) Takes a WBXML input document and decodes it.
decodeToString ( string $wbxml ) : string Takes a WBXML input document and returns decoded XML.
endTag ( )
entity ( $entity ) Return the hex version of the base 10 $entity.
getAttribute ( $attribute )
getAttributes ( $input )
getByte ( string $input ) Return one byte from the input stream.
getCharset ( $input ) Returns the character encoding. Only default character encodings from J2SE are supported. From http://www.iana.org/assignments/character-sets and http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html
getCurrentURI ( )
getDocumentPublicIdentifier ( $input )
getDocumentPublicIdentifierImpl ( $dpiType, $dpiNumber )
getStringTableEntry ( $index )
getTag ( $tag )
getVersionNumber ( $input )
parseTag ( $input, $tag, $hasAttributes, $hasContent )
retrieveStringTable ( $input ) Retrieves the string table.
setContentHandler ( Horde_Xml_Wbxml_ContentHandler $ch ) Sets the contentHandler that will receive the output of the decoding.
startGetAttributes ( )
stopGetAttributes ( )
switchAttributeCodePage ( $codePage )
switchElementCodePage ( $codePage )
termstr ( $input ) Reads a null terminated string.
writeString ( $str )

Méthodes protégées

Méthode Description
_decode ( $input )

Method Details

__construct() public méthode

Constructor.
public __construct ( )

_decode() protected méthode

protected _decode ( $input )

decode() public méthode

Decoding result is directly passed to the contentHandler. A contenthandler must be set using setContentHandler prior to invocation of this method
public decode ( string $wbxml )
$wbxml string The WBXML document to decode.

decodeToString() public méthode

However the preferred and more effecient method is to use decode() rather than decodeToString() and have an appropriate contentHandler deal with the decoded data.
public decodeToString ( string $wbxml ) : string
$wbxml string The WBXML document to decode.
Résultat string The decoded XML document.

endTag() public méthode

public endTag ( )

entity() public méthode

Return the hex version of the base 10 $entity.
public entity ( $entity )

getAttribute() public méthode

public getAttribute ( $attribute )

getAttributes() public méthode

public getAttributes ( $input )

getByte() public méthode

Return one byte from the input stream.
public getByte ( string $input )
$input string The WBXML input string.

getCharset() public méthode

Returns the character encoding. Only default character encodings from J2SE are supported. From http://www.iana.org/assignments/character-sets and http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html
public getCharset ( $input )

getCurrentURI() public méthode

public getCurrentURI ( )

getDocumentPublicIdentifier() public méthode

public getDocumentPublicIdentifier ( $input )

getDocumentPublicIdentifierImpl() public méthode

public getDocumentPublicIdentifierImpl ( $dpiType, $dpiNumber )

getStringTableEntry() public méthode

public getStringTableEntry ( $index )

getTag() public méthode

public getTag ( $tag )

getVersionNumber() public méthode

public getVersionNumber ( $input )

parseTag() public méthode

public parseTag ( $input, $tag, $hasAttributes, $hasContent )

retrieveStringTable() public méthode

The string table consists of an mb_u_int32 length and then length bytes forming the table. References to the string table refer to the starting position of the (null terminated) string in this table.
public retrieveStringTable ( $input )

setContentHandler() public méthode

Sets the contentHandler that will receive the output of the decoding.
public setContentHandler ( Horde_Xml_Wbxml_ContentHandler $ch )
$ch Horde_Xml_Wbxml_ContentHandler The contentHandler

startGetAttributes() public méthode

public startGetAttributes ( )

stopGetAttributes() public méthode

public stopGetAttributes ( )

switchAttributeCodePage() public méthode

public switchAttributeCodePage ( $codePage )

switchElementCodePage() public méthode

public switchElementCodePage ( $codePage )

termstr() public méthode

Reads a null terminated string.
public termstr ( $input )

writeString() public méthode

public writeString ( $str )

Property Details

$_attributeDTD protected_oe property

protected $_attributeDTD

$_ch protected_oe property

Currently just outputs raw XML.
protected $_ch

$_dpi protected_oe property

Document Public Identifier Used with dpiType.
protected $_dpi

$_dtdManager protected_oe property

The DTD Manager.
protected Horde_Xml_Wbxml_DtdManager $_dtdManager
Résultat Horde_Xml_Wbxml_DtdManager

$_error protected_oe property

protected $_error

$_isAttribute protected_oe property

protected $_isAttribute

$_isData protected_oe property

protected $_isData

$_prevAttributeDTD protected_oe property

protected $_prevAttributeDTD

$_stringTable protected_oe property

String table as defined in 5.7
protected $_stringTable

$_strpos protected_oe property

The string position.
protected int $_strpos
Résultat integer

$_tagDTD protected_oe property

protected $_tagDTD

$_tagStack protected_oe property

State variables.
protected $_tagStack