Overview

Packages

  • Xml
    • Wbxml

Classes

  • Horde_Xml_Wbxml
  • Horde_Xml_Wbxml_ContentHandler
  • Horde_Xml_Wbxml_Decoder
  • Horde_Xml_Wbxml_Dtd
  • Horde_Xml_Wbxml_Dtd_SyncMl
  • Horde_Xml_Wbxml_Dtd_SyncMlDevInf
  • Horde_Xml_Wbxml_Dtd_SyncMlMetInf
  • Horde_Xml_Wbxml_DtdManager
  • Horde_Xml_Wbxml_Encoder
  • Horde_Xml_Wbxml_Exception
  • Horde_Xml_Wbxml_HashTable
  • Horde_Xml_Wbxml_LifoQueue
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Xml_Wbxml_Decoder

From Binary XML Content Format Specification Version 1.3, 25 July 2001 found at http://www.wapforum.org

Copyright 2003-2012 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.

Horde_Xml_Wbxml_ContentHandler
Extended by Horde_Xml_Wbxml_Decoder
Package: Xml\Wbxml
Author: Anthony Mills amills@pyramid6.com
Located at Horde/Xml/Wbxml/Decoder.php
Methods summary
public
# __construct( )

Constructor.

Constructor.

Overrides

Horde_Xml_Wbxml_ContentHandler::__construct()
public
# setContentHandler( Horde_Xml_Wbxml_ContentHandler $ch )

Sets the contentHandler that will receive the output of the decoding.

Sets the contentHandler that will receive the output of the decoding.

Parameters

$ch
The contentHandler
public
# getByte( string $input )

Return one byte from the input stream.

Return one byte from the input stream.

Parameters

$input
The WBXML input string.
public string
# decodeToString( string $wbxml )

Takes a WBXML input document and returns decoded XML. However the preferred and more effecient method is to use decode() rather than decodeToString() and have an appropriate contentHandler deal with the decoded data.

Takes a WBXML input document and returns decoded XML. However the preferred and more effecient method is to use decode() rather than decodeToString() and have an appropriate contentHandler deal with the decoded data.

Parameters

$wbxml
The WBXML document to decode.

Returns

string
The decoded XML document.

Throws

Horde_Xml_Wbxml_Exception
public
# decode( string $wbxml )

Takes a WBXML input document and decodes it. Decoding result is directly passed to the contentHandler. A contenthandler must be set using setContentHandler prior to invocation of this method

Takes a WBXML input document and decodes it. Decoding result is directly passed to the contentHandler. A contenthandler must be set using setContentHandler prior to invocation of this method

Parameters

$wbxml
The WBXML document to decode.

Throws

Horde_Xml_Wbxml_Exception
public
# getVersionNumber( mixed $input )
public
# getDocumentPublicIdentifier( mixed $input )
public
# getDocumentPublicIdentifierImpl( mixed $dpiType, mixed $dpiNumber )
public
# getCharset( mixed $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

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
# retrieveStringTable( mixed $input )

Retrieves the string table. 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.

Retrieves the string table. 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
# getStringTableEntry( mixed $index )
public
# parseTag( mixed $input, mixed $tag, mixed $hasAttributes, mixed $hasContent )
public
# endTag( )
public
# getAttributes( mixed $input )
public
# startGetAttributes( )
public
# stopGetAttributes( )
public
# getCurrentURI( )
public
# writeString( mixed $str )
public
# getTag( mixed $tag )
public
# getAttribute( mixed $attribute )
public
# switchElementCodePage( mixed $codePage )
public
# switchAttributeCodePage( mixed $codePage )
public
# entity( mixed $entity )

Return the hex version of the base 10 $entity.

Return the hex version of the base 10 $entity.

public
# termstr( mixed $input )

Reads a null terminated string.

Reads a null terminated string.

Methods inherited from Horde_Xml_Wbxml_ContentHandler
characters(), createSubHandler(), endElement(), getCharsetStr(), getOutput(), getOutputSize(), getVersion(), opaque(), removeOpaqueHandler(), setCharset(), setOpaqueHandler(), setVersion(), startElement()
API documentation generated by ApiGen