com.aspose.html.services

Interface IUserAgentService

  • All Superinterfaces:
    com.aspose.ms.System.IDisposable, IService


    public interface IUserAgentService
    extends IService

    An interface that is described a user agent environment.

    See Also:
    IService
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.String getCharSet()
      Gets the primary character-set for a document.
      int getCSSEngineMode()
      Gets mode in which CSS engine works.
      com.aspose.html.FontsSettings getFontsSettings()
      Gets a FontsSettings object which is used for configuration of fonts handling.
      java.lang.String getLanguage()
      The Language(getLanguage()/setLanguage(String)) specifies the primary language for the element's contents and for any of the element's attributes that contain text.
      java.lang.String getUserStyleSheet()
      Allows to specify style information for a particular document
      void setCharSet(java.lang.String value)
      Sets the primary character-set for a document.
      void setCSSEngineMode(int value)
      Sets mode in which CSS engine works.
      void setLanguage(java.lang.String value)
      The Language(getLanguage()/setLanguage(String)) specifies the primary language for the element's contents and for any of the element's attributes that contain text.
      void setUserStyleSheet(java.lang.String value)
      Allows to specify style information for a particular document
      • Methods inherited from interface com.aspose.ms.System.IDisposable

        dispose
    • Method Detail

      • getLanguage

        java.lang.String getLanguage()

        The Language(getLanguage()/setLanguage(String)) specifies the primary language for the element's contents and for any of the element's attributes that contain text. Its value must be a valid BCP 47 () language tag, or the empty string. Setting the attribute to the empty string indicates that the primary language is unknown.

        Value: The user agent language.
        See Also:
        http://www.ietf.org/rfc/bcp/bcp47.txt
      • setLanguage

        void setLanguage(java.lang.String value)

        The Language(getLanguage()/setLanguage(String)) specifies the primary language for the element's contents and for any of the element's attributes that contain text. Its value must be a valid BCP 47 () language tag, or the empty string. Setting the attribute to the empty string indicates that the primary language is unknown.

        Value: The user agent language.
        See Also:
        http://www.ietf.org/rfc/bcp/bcp47.txt
      • getUserStyleSheet

        java.lang.String getUserStyleSheet()

        Allows to specify style information for a particular document

      • setUserStyleSheet

        void setUserStyleSheet(java.lang.String value)

        Allows to specify style information for a particular document

      • getCharSet

        java.lang.String getCharSet()

        Gets the primary character-set for a document.

        Value: The character set.
        Returns:
        the primary character-set for a document.
      • setCharSet

        void setCharSet(java.lang.String value)

        Sets the primary character-set for a document.

        Value: The character set.
        Parameters:
        value - the primary character-set for a document.
      • getCSSEngineMode

        int getCSSEngineMode()

        Gets mode in which CSS engine works.

        Value: The engine mode.
        Returns:
        mode in which CSS engine works.
      • setCSSEngineMode

        void setCSSEngineMode(int value)

        Sets mode in which CSS engine works.

        Value: The engine mode.
        Parameters:
        value - mode in which CSS engine works.
      • getFontsSettings

        com.aspose.html.FontsSettings getFontsSettings()

        Gets a FontsSettings object which is used for configuration of fonts handling.

        Value: The FontsSettings object.
        Returns:
        a FontsSettings object which is used for configuration of fonts handling.