(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: xml :: sax ::

struct InputSource
Description
specifies the Datasource plus some additional information for the parser.

There are two places where the application will deliver this input source to the parser:

  • as the argument of XParser::parseStream
  • as the return value of XEntityReslover::resolveEntity.

Elements' Summary
aInputStream contains the byte input stream of the document.  
sEncoding contains the encoding of the data stream. This is used by the parser to do unicode conversions.  
sPublicId constains the public Id of the document, for example, needed in exception-message strings.  
sSystemId contains the sytemID of the document.  
Elements' Details
aInputStream
::com::sun::star::io::XInputStream aInputStream;
Description
contains the byte input stream of the document.
sEncoding
string sEncoding;
Description
contains the encoding of the data stream. This is used by the parser to do unicode conversions.

Note that in general you do not need to specify an encoding. Either it is UTF-8 or UTF-16 which is recognized by the parser or it is specified in the first line of the XML-File ( e.g. ?xml encoding="EUC-JP"? ).

sPublicId
string sPublicId;
Description
constains the public Id of the document, for example, needed in exception-message strings.
sSystemId
string sSystemId;
Description
contains the sytemID of the document.
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.