Setting the PlainText filter parameters

Use the PlainText filter to parse plain text files. Plain text files seldom contain any information about how they are encoded, so the text filter is often forced to use a default decoder when the code is not known.

If you do not define FallbackCharset property, the filter uses the code identified by the standard Java system property file.encoding.

Table 3-18: PlainText filter parameter

Parameter

Value

DocumentFilter class

com.omniq.filter.txt.PlainTextFilter

FallbackCharset

Default

Table 3-19 shows the MimeMapping parameters associated with the PlainText filter.

Table 3-19: MimeMapping parameters for PlainText filter

Parameter

Value

MimeType

text/plain

DocumentFilterName

PlainText