Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: uri ::
interface XExternalUriReferenceTranslator
Description translates between external and internal URI references. Some URI schemes leave unspecified important aspects of how to interpret URIs of those schemes. For example, it is unspecified for “file” URLs how to map the byte sequences that constitute the path segments of a “file” URL to filenames on a given platform: The UNO environment always assumes that path segments of “file” URLs represent UTF-8–encoded strings (which have to be mapped to filenames in a platform-specific way), while other applications typically assume that path segments of “file” URLs directly represent a platform's byte-sequence filenames. This interface offers methods to translate between such internal URIs (e.g., UTF-8–encoded “file” URLs used within the UNO environment) and external URIs (e.g., byte-sequence–oriented “file” URLs used by other applications). Typically, only “file” URLs are affected by this translation. Since the translation process is based on URI schemes, relative URI references (that do not include a scheme) are left unmodified by the translation process. Since OOo 2.0

Methods' Summary
translateToInternal | returns the internal counterpart of an external URI reference.
translateToExternal | returns the external counterpart of an internal URI reference.

Methods' Details
translateToInternal
string
translateToInternal( | [in] string | externalUriReference );
Description returns the internal counterpart of an external URI reference. Parameter externalUriReference an external URI reference. Returns the internal counterpart of the given external URI reference. An empty string is returned if the given external URI reference either is an empty string or cannot be converted (for example, because it contains illegal characters).
translateToExternal
string
translateToExternal( | [in] string | internalUriReference );
Description returns the external counterpart of an internal URI reference. Parameter internalUriReference an internal URI reference. Returns the external counterpart of the given internal URI reference. An empty string is returned if the given internal URI reference either is an empty string or cannot be converted (for example, because it contains illegal characters).

Top of Page

Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.