Class DocFormatService

    • Field Detail

      • ONE_PER_LINE_SUFFIX

        public static final String ONE_PER_LINE_SUFFIX
        The suffix to add to formats to indicate the input has one document per line.
        See Also:
        Constant Field Values
    • Method Detail

      • create

        public static DocFormat create​(@NonNull
                                       @NonNull Specification specification)

        Creates a DocFormat from the given specification, where the specification is in the form of: format_name[_opl]::[RESOURCE];PARAMETERS

        Parameters:
        specification - the specification
        Returns:
        the doc format
      • create

        public static DocFormat create​(@NonNull
                                       @NonNull String specification)

        Creates a DocFormat from the given specification, where the specification is in the form of: format_name[_opl]::[RESOURCE];PARAMETERS

        Parameters:
        specification - the specification
        Returns:
        the doc format
      • getProvider

        public static DocFormatProvider getProvider​(@NonNull
                                                    @NonNull String name)
        Gets the DocFormatProvider for the given format name.
        Parameters:
        name - the format name
        Returns:
        the DocFormatProvider