com.groupdocs.conversion.options.load

Class TxtLoadOptions

  • All Implemented Interfaces:
    Cloneable


    public final class TxtLoadOptions
    extends LoadOptions

    Txt document load options

    • Constructor Detail

      • TxtLoadOptions

        public TxtLoadOptions()

        Default constructor

    • Method Detail

      • getDetectNumberingWithWhitespaces

        public final boolean getDetectNumberingWithWhitespaces()

        Allows to specify how numbered list items are recognized when plain text document is converted. The default value is true.


        If this option is set to false, lists recognition algorithm detects list paragraphs, when list numbers ends with either dot, right bracket or bullet symbols (such as "•", "*", "-" or "o").

        If this option is set to true, whitespaces are also used as list number delimeters: list recognition algorithm for Arabic style numbering (1., 1.1.2.) uses both whitespaces and dot (".") symbols.

        Returns:
      • setDetectNumberingWithWhitespaces

        public final void setDetectNumberingWithWhitespaces(boolean value)

        Allows to specify how numbered list items are recognized when plain text document is converted. The default value is true.


        If this option is set to false, lists recognition algorithm detects list paragraphs, when list numbers ends with either dot, right bracket or bullet symbols (such as "•", "*", "-" or "o").

        If this option is set to true, whitespaces are also used as list number delimeters: list recognition algorithm for Arabic style numbering (1., 1.1.2.) uses both whitespaces and dot (".") symbols.

        Parameters:
        value -
      • setTrailingSpacesOptions

        public final void setTrailingSpacesOptions(int value)

        Gets or sets preferred option of a trailing space handling. Default value is TxtLoadOptions.TxtTrailingSpacesOptions.Trim.

        Parameters:
        value -
      • getEncoding

        public final Charset getEncoding()

        Gets or sets the encoding that will be used when loading Txt document. Can be null. Default is null.

        Returns:
      • setEncoding

        public final void setEncoding(Charset value)

        Gets or sets the encoding that will be used when loading Txt document. Can be null. Default is null.

        Parameters:
        value -