PHP 클래스 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.
저자: Anthony Mills ([email protected])
상속: extends Horde_Xml_Wbxml_ContentHandler
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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.

공개 메소드들

메소드 설명
__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 )

보호된 메소드들

메소드 설명
_decode ( $input )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

_decode() 보호된 메소드

protected _decode ( $input )

decode() 공개 메소드

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() 공개 메소드

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.
리턴 string The decoded XML document.

endTag() 공개 메소드

public endTag ( )

entity() 공개 메소드

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

getAttribute() 공개 메소드

public getAttribute ( $attribute )

getAttributes() 공개 메소드

public getAttributes ( $input )

getByte() 공개 메소드

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

getCharset() 공개 메소드

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 getCurrentURI ( )

getDocumentPublicIdentifier() 공개 메소드

public getDocumentPublicIdentifier ( $input )

getDocumentPublicIdentifierImpl() 공개 메소드

public getDocumentPublicIdentifierImpl ( $dpiType, $dpiNumber )

getStringTableEntry() 공개 메소드

public getStringTableEntry ( $index )

getTag() 공개 메소드

public getTag ( $tag )

getVersionNumber() 공개 메소드

public getVersionNumber ( $input )

parseTag() 공개 메소드

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

retrieveStringTable() 공개 메소드

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() 공개 메소드

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 startGetAttributes ( )

stopGetAttributes() 공개 메소드

public stopGetAttributes ( )

switchAttributeCodePage() 공개 메소드

public switchAttributeCodePage ( $codePage )

switchElementCodePage() 공개 메소드

public switchElementCodePage ( $codePage )

termstr() 공개 메소드

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

writeString() 공개 메소드

public writeString ( $str )

프로퍼티 상세

$_attributeDTD 보호되어 있는 프로퍼티

protected $_attributeDTD

$_ch 보호되어 있는 프로퍼티

Currently just outputs raw XML.
protected $_ch

$_dpi 보호되어 있는 프로퍼티

Document Public Identifier Used with dpiType.
protected $_dpi

$_dtdManager 보호되어 있는 프로퍼티

The DTD Manager.
protected Horde_Xml_Wbxml_DtdManager $_dtdManager
리턴 Horde_Xml_Wbxml_DtdManager

$_error 보호되어 있는 프로퍼티

protected $_error

$_isAttribute 보호되어 있는 프로퍼티

protected $_isAttribute

$_isData 보호되어 있는 프로퍼티

protected $_isData

$_prevAttributeDTD 보호되어 있는 프로퍼티

protected $_prevAttributeDTD

$_stringTable 보호되어 있는 프로퍼티

String table as defined in 5.7
protected $_stringTable

$_strpos 보호되어 있는 프로퍼티

The string position.
protected int $_strpos
리턴 integer

$_tagDTD 보호되어 있는 프로퍼티

protected $_tagDTD

$_tagStack 보호되어 있는 프로퍼티

State variables.
protected $_tagStack