Contextual Output Encoding is a computer programming technique necessary to stop [Cross Site Scripting]. This project is a Java 1.5 simple-to-use drop-in high-performance encoder class with little baggage.
The general API pattern to utilize the Java Encoder Project is
"Encode.forContextName(untrustedData)", where "ContextName" is the
name of the target context and "untrustedData" in untrusted user input.