Module com.aoapps.encoding
Package com.aoapps.encoding
package com.aoapps.encoding
-
ClassDescriptionBuffers the content to perform final output on writeSuffix.Buffers the content to perform final validation.A chain writer encapsulates a
PrintWriter
and returns theChainWriter
instance on most methods.Encodes arbitrary nested types for safe output.The current encoding context may perform URL rewriting.Exception thrown when an invalid character is detected.Encodes JavaScript for safe output.Encode JavaScript into an XHTML attribute.Encode JavaScript and related formats into XHTML.Currently performs no validation of the character because JavaScript can use the entire Unicode character set.JavaScriptWritable<Ex extends Throwable>Streaming versions of media encoders.Encodes JSON object graphs for safe output.JsonWritable<Ex extends Throwable>Streaming versions of media encoders.Encodes JSON linked data for safe output.LdJsonWritable<Ex extends Throwable>Streaming versions of media encoders.Encodes media to allow it to be contained in a different type of media.Supported content types.Verifies all characters going through this filter are valid for the given media type.MediaWritable<Ex extends Throwable>Streaming versions of media encoders.Encodesmysql
command input for safe output.This implementation is based on Table 9.1 Special Character Escape Sequences.MysqlWritable<Ex extends Throwable>Streaming versions of media encoders.Wraps aMediaValidator
while doing nothing onFilterWriter.close()
.Encodespsql
command input for safe output.This implementation is based on 4.1.2.2.PsqlWritable<Ex extends Throwable>Streaming versions of media encoders.The type of serialization (Serialization.SGML
orSerialization.XML
).Encodes shell scripts for safe output.Although shell scripts can potentially parse and execute with lots of unprintable and binary values, we are validating a more strict subset of characters that are generally text editor and copy/paste friendly.ShWritable<Ex extends Throwable>Streaming versions of media encoders.Encodes CSS stylesheets for safe output.Encode CSS into an XHTML attribute.Encode CSS into XHTML.See 4.1.3 Characters and case. See 4.3.7 Strings.StyleWritable<Ex extends Throwable>Streaming versions of media encoders.Encodes arbitrary text for safe output.Encodes arbitrary text into a JavaScript string.Encodes arbitrary text for use asmysql
command input.Encodes arbitrary text for use aspsql
command input.Encodes arbitrary text for use in a shell script.Encodes arbitrary text for use as a CSS string.Encodes arbitrary text into an XHTML attribute.Encodes arbitrary text into XHTML.No validation is performed on text.TextWritable<Ex extends Throwable>Streaming versions of media encoders.Encodes RFC 3986 URI or RFC 3987 IRI for safe output.Encodes a URL into a JavaScript string.Encodes a URL into CSS, usingEncodingContext.encodeURL(java.lang.String)
to rewrite the URL as needed and surrounds it inurl("…")
.Encodes a URL into an XHTML attribute.Encodes a URL into XHTML.Verifies all characters going through this filter are valid for a URI/URL.UrlWritable<Ex extends Throwable>Streaming versions of media encoders.Passes through all characters unaltered after validating with the given validator.Indicates that the object both validates its input and produces valid output.Indicates that the object validates its input for the provided type.Indicates that the object can be trusted to generate output with only valid characters for the provided type.WhitespaceWritable<Ex extends Throwable>Streaming versions of media encoders that can write whitespace.Helpers for implementingWhitespace
.Encodes (X)HTML for safe output.Encodes (X)HTML Attributes for safe output.Verifies all characters going through this filter are valid for an XHTML attribute.XhtmlAttributeWritable<Ex extends Throwable>Streaming versions of media encoders.Verifies all characters going through this filter are valid for XHTML.XhtmlWritable<Ex extends Throwable>Streaming versions of media encoders.