Top Description Methods
org.jdom2.output

public Interface EscapeStrategy

Known Direct Implementers
org.jdom2.output.Format.EscapeStrategyUTF, org.jdom2.output.Format.EscapeStrategy8Bits, org.jdom2.output.Format.EscapeStrategy7Bits, org.jdom2.output.Format.DefaultCharsetEscapeStrategy

Logic to determine which characters should be formatted as character entities.
Authors
Alex Rosen, Bradley S. Huffman, Jason Hunter

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if ch should be escaped.
shouldEscape
(char
The char to test to determine whether it should be escaped.
ch
)

Test whether the supplied character should be formatted literally or as a character entity.

Method Detail

shouldEscapeback to summary
public boolean shouldEscape(char ch)

Test whether the supplied character should be formatted literally or as a character entity.

Parameters
ch:char

The char to test to determine whether it should be escaped.

Returns:boolean

true if ch should be escaped.