A B C D E F G H I J L M N O P Q R S T U V W X _ 
All Classes All Packages

A

ALL - org.owasp.encoder.XMLEncoder.Mode
All significant characters are encoded (& < > ' ").
AMP - Static variable in class org.owasp.encoder.HTMLEncoder
Encoding for '&'.
AMP_LENGTH - Static variable in class org.owasp.encoder.XMLEncoder
The encoded length of an ampersand.
APOS_LENGTH - Static variable in class org.owasp.encoder.XMLEncoder
The encoded length of an apostrophe.
append(char[], char[], int) - Static method in class org.owasp.encoder.HTMLEncoder
Appends a source array verbatim to the output array.
ASCIIBits - Class in org.owasp.encoder
ASCIIBits - Small helper class for building up 128-bit bit-mask (2 longs) to be used testing lower-ASCII characters.
ASCIIBits() - Constructor for class org.owasp.encoder.ASCIIBits
 
ATTRIBUTE - org.owasp.encoder.JavaScriptEncoder.Mode
Encoding for use in HTML attributes.
ATTRIBUTE - org.owasp.encoder.XMLEncoder.Mode
Characters are encoded for attribute values--either single or double quoted.

B

BASE_VALID_MASK - Static variable in class org.owasp.encoder.XMLEncoder
A bit-mask of valid characters with code-points in the range 0--63.
BLOCK - org.owasp.encoder.JavaScriptEncoder.Mode
Encoding for use in HTML script blocks.
Buffer() - Constructor for class org.owasp.encoder.Encode.Buffer
 
BUFFER_SIZE - Static variable in class org.owasp.encoder.EncodedWriter
Buffer size to allocate.

C

CDATA - Static variable in class org.owasp.encoder.Encoders
Name of CDATA context.
CDATA_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for CDATA contexts.
CDATA_END_ENCODED - Static variable in class org.owasp.encoder.CDATAEncoder
The encoding of @{code "]]>"}.
CDATA_END_ENCODED_LENGTH - Static variable in class org.owasp.encoder.CDATAEncoder
Length of "]]]]><![CDATA[>".
CDATA_END_LENGTH - Static variable in class org.owasp.encoder.CDATAEncoder
Length of "]]>".
CDATAEncoder - Class in org.owasp.encoder
CDATAEncoder -- encoder for CDATA sections.
CDATAEncoder() - Constructor for class org.owasp.encoder.CDATAEncoder
 
ChainedEncoder - Class in org.owasp.encoder
ChainedEncoder -- An encoder that chains together two encoders in order.
ChainedEncoder(Encoder, Encoder) - Constructor for class org.owasp.encoder.ChainedEncoder
Creates an ChainedEncoder that applies the encoding sequence input --> first --> last --> output.
CHARS_0_TO_9 - Static variable in class org.owasp.encoder.URIEncoder
Number of characters in the range '0' to '9'.
CHARS_A_TO_Z - Static variable in class org.owasp.encoder.URIEncoder
Number of characters in the range 'a' to 'z'.
clear(char, char) - Method in class org.owasp.encoder.ASCIIBits
Sets a range of characters to 0s in the masks.
clear(String) - Method in class org.owasp.encoder.ASCIIBits
Clears the bit (sets to 0) for each character in the argument string.
close() - Method in class org.owasp.encoder.EncodedWriter
 
COMPONENT - org.owasp.encoder.URIEncoder.Mode
In "component" mode, only the unreserved characters are left unescaped.
CONTENT - org.owasp.encoder.XMLEncoder.Mode
Characters are encoded for content (a.k.a.
CSS_STRING - Static variable in class org.owasp.encoder.Encoders
Name of CSS string context.
CSS_STRING_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for CSS strings.
CSS_URL - Static variable in class org.owasp.encoder.Encoders
Name of CSS URL context.
CSS_URL_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for CSS URL values.
CSSEncoder - Class in org.owasp.encoder
CSSEncoder -- Encoder for Cascading-Style-Sheet string and URI contexts.
CSSEncoder(CSSEncoder.Mode) - Constructor for class org.owasp.encoder.CSSEncoder
Creates an encoder for the specified mode of operation.
CSSEncoder.Mode - Enum in org.owasp.encoder
Encoding mode of operation--specified the set of characters that required encoding.

D

DEL - Static variable in class org.owasp.encoder.Unicode
ASCII "DEL" character.
DOUBLE_QUOTED_ATTRIBUTE - org.owasp.encoder.XMLEncoder.Mode
Characters are encoded for double-quoted attribute values.

E

encode(int, char[], int) - Static method in class org.owasp.encoder.HTMLEncoder
Appends the numerically encoded version of codePoint to the output buffer.
encode(String) - Method in class org.owasp.encoder.ChainedEncoder
Encodes an input string to an output string.
encode(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.ChainedEncoder
 
encode(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.Encoder
This is the kernel of encoding.
encode(Encoder, Writer, String) - Static method in class org.owasp.encoder.Encode
Core encoding loop shared by public methods.
encode(Encoder, Writer, String, int) - Method in class org.owasp.encoder.Encode.Buffer
The core Writer encoding routing of this class.
encode(Encoder, String) - Static method in class org.owasp.encoder.Encode
Core encoding loop shared by public methods.
encode(Encoder, String, int) - Method in class org.owasp.encoder.Encode.Buffer
The core String encoding routine of this class.
Encode - Class in org.owasp.encoder
Encode -- fluent interface for contextual encoding.
Encode() - Constructor for class org.owasp.encoder.Encode
No instances.
ENCODE_AFFIX_CHAR_COUNT - Static variable in class org.owasp.encoder.HTMLEncoder
Number of characters in the encoding prefix and suffix when using decimal numeric encodings of the form "&#...;".
Encode.Buffer - Class in org.owasp.encoder
A buffer used for encoding.
encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.CDATAEncoder
 
encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.ChainedEncoder
 
encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.CSSEncoder
 
encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.Encoder
The core encoding loop used when both the input and output buffers are array backed.
encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.HTMLEncoder
 
encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.JavaEncoder
 
encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.JavaScriptEncoder
 
encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.URIEncoder
 
encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.XMLCommentEncoder
 
encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.XMLEncoder
The core encoding loop used when both the input and output buffers are array backed.
encodeBuffers(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.Encoder
The core encoding loop used when either or both input and output buffers are NOT array-backed.
EncodedWriter - Class in org.owasp.encoder
EncodedWriter -- A writer the encodes all input for a specific context and writes the encoded output to another writer.
EncodedWriter(Writer, String) - Constructor for class org.owasp.encoder.EncodedWriter
Creates an EncodedWriter that uses the specified encoder to encode all input before sending it to the wrapped writer.
EncodedWriter(Writer, Encoder) - Constructor for class org.owasp.encoder.EncodedWriter
Creates an EncodedWriter that uses the specified encoder to encode all input before sending it to the wrapped writer.
Encoder - Class in org.owasp.encoder
This is the low-level encoding API.
Encoder() - Constructor for class org.owasp.encoder.Encoder
Package-private constructor to prevent having to support external implementations of this class.
Encoders - Class in org.owasp.encoder
Encoders -- Public factory method for obtaining instances of Encoders.
Encoders() - Constructor for class org.owasp.encoder.Encoders
No instances.
ENCODERS_MAP - Static variable in class org.owasp.encoder.Encoders
Map from encoder name to encoder singleton.

F

firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.CDATAEncoder
 
firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.ChainedEncoder
 
firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.CSSEncoder
 
firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.Encoder
Scans the input string for the first character index that requires encoding.
firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.HTMLEncoder
 
firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.JavaEncoder
 
firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.JavaScriptEncoder
 
firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.URIEncoder
 
firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.XMLCommentEncoder
 
firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.XMLEncoder
 
flush() - Method in class org.owasp.encoder.EncodedWriter
 
flushBufferToWriter() - Method in class org.owasp.encoder.EncodedWriter
Flushes the contents of the buffer to the writer and resets the buffer to make room for more input.
flushLeftOver(CharBuffer) - Method in class org.owasp.encoder.EncodedWriter
Flushes the left-over buffer.
forCDATA(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forCDATA(String) for description of encoding.
forCDATA(String) - Static method in class org.owasp.encoder.Encode
Encodes data for an XML CDATA section.
forCssString(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forCssString(String) for description of encoding.
forCssString(String) - Static method in class org.owasp.encoder.Encode
Encodes for CSS strings.
forCssUrl(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forCssUrl(String) for description of encoding.
forCssUrl(String) - Static method in class org.owasp.encoder.Encode
Encodes for CSS URL contexts.
forHtml(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forHtml(String) for description of encoding.
forHtml(String) - Static method in class org.owasp.encoder.Encode
Encodes for (X)HTML text content and text attributes.
forHtmlAttribute(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forHtmlAttribute(String) for description of encoding.
forHtmlAttribute(String) - Static method in class org.owasp.encoder.Encode
This method encodes for HTML text attributes.
forHtmlContent(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forHtmlContent(String) for description of encoding.
forHtmlContent(String) - Static method in class org.owasp.encoder.Encode
This method encodes for HTML text content.
forHtmlUnquotedAttribute(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forHtmlUnquotedAttribute(String) for description of encoding.
forHtmlUnquotedAttribute(String) - Static method in class org.owasp.encoder.Encode
Encodes for unquoted HTML attribute values.
forJava(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forJava(String) for description of encoding.
forJava(String) - Static method in class org.owasp.encoder.Encode
Encodes for a Java string.
forJavaScript(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forJavaScript(String) for description of encoding.
forJavaScript(String) - Static method in class org.owasp.encoder.Encode
Encodes for a JavaScript string.
forJavaScriptAttribute(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forJavaScriptAttribute(String) for description of encoding.
forJavaScriptAttribute(String) - Static method in class org.owasp.encoder.Encode
This method encodes for JavaScript strings contained within HTML script attributes (such as onclick).
forJavaScriptBlock(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forJavaScriptBlock(String) for description of encoding.
forJavaScriptBlock(String) - Static method in class org.owasp.encoder.Encode
This method encodes for JavaScript strings contained within HTML script blocks.
forJavaScriptSource(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forJavaScriptSource(String) for description of encoding.
forJavaScriptSource(String) - Static method in class org.owasp.encoder.Encode
This method encodes for JavaScript strings contained within a JavaScript or JSON file.
forName(String) - Static method in class org.owasp.encoder.Encoders
Returns a new instance of an Encoder for the specified context.
forUri(Writer, String) - Static method in class org.owasp.encoder.Encode
Deprecated.
There is never a need to encode a complete URI with this form of encoding.
forUri(String) - Static method in class org.owasp.encoder.Encode
Deprecated.
forUriComponent(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forUriComponent(String) for description of encoding.
forUriComponent(String) - Static method in class org.owasp.encoder.Encode
Performs percent-encoding for a component of a URI, such as a query parameter name or value, path or query-string.
forXml(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forXml(String) for description of encoding.
forXml(String) - Static method in class org.owasp.encoder.Encode
Encoder for XML and XHTML.
forXmlAttribute(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forXmlAttribute(String) for description of encoding.
forXmlAttribute(String) - Static method in class org.owasp.encoder.Encode
Encoder for XML and XHTML attribute content.
forXmlComment(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forXmlComment(String) for description of encoding.
forXmlComment(String) - Static method in class org.owasp.encoder.Encode
Encoder for XML comments.
forXmlContent(Writer, String) - Static method in class org.owasp.encoder.Encode
See Encode.forXmlContent(String) for description of encoding.
forXmlContent(String) - Static method in class org.owasp.encoder.Encode
Encoder for XML and XHTML text content.
FULL_URI - org.owasp.encoder.URIEncoder.Mode
In "full" mode, all unreserved and reserved characters are left unescaped.

G

GT - Static variable in class org.owasp.encoder.HTMLEncoder
Encoding for '>'.
GT_LENGTH - Static variable in class org.owasp.encoder.XMLEncoder
The encoded length of a greater-than sign.

H

HEX - Static variable in class org.owasp.encoder.Encoder
Hexadecimal conversion array.
HEX_ENCODED_LENGTH - Static variable in class org.owasp.encoder.CSSEncoder
Length of hex encoding with trailing space "\## ".
HEX_MASK - Static variable in class org.owasp.encoder.Encoder
Bit-mask used for encoding values in hexadecimal.
HEX_SHIFT - Static variable in class org.owasp.encoder.Encoder
Bit-shift used for encoding values in hexadecimal.
highMask() - Method in enum org.owasp.encoder.CSSEncoder.Mode
Accessor for _highMask.
highMask() - Method in enum org.owasp.encoder.URIEncoder.Mode
Accessor for the high bit-mask.
HTML - org.owasp.encoder.JavaScriptEncoder.Mode
Encodes for use in either HTML script attributes or blocks.
HTML - Static variable in class org.owasp.encoder.Encoders
Name of HTML general context.
HTML_ATTRIBUTE - Static variable in class org.owasp.encoder.Encoders
Name of HTML attribute context.
HTML_CONTENT - Static variable in class org.owasp.encoder.Encoders
Name of HTML content context.
HTML_UNQUOTED_ATTRIBUTE - Static variable in class org.owasp.encoder.Encoders
Name of unquoted HTML attribute context.
HTML_UNQUOTED_ATTRIBUTE_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for unquoted HTML attributes.
HTMLEncoder - Class in org.owasp.encoder
HTMLEncoder -- an encoder for HTML contexts.
HTMLEncoder() - Constructor for class org.owasp.encoder.HTMLEncoder
 
HYPHEN_REPLACEMENT - Static variable in class org.owasp.encoder.XMLCommentEncoder
This is the character used to replace a hyphen when a sequence of hypens is encountered.

I

INPUT_BUFFER_SIZE - Static variable in class org.owasp.encoder.Encode.Buffer
Input buffer size, used to extract a copy of the input from a string and then send to the encoder.
INVALID_CHARACTER_REPLACEMENT - Static variable in class org.owasp.encoder.XMLEncoder
Character to use as a replacement for invalid characters (Not to be confused with characters that require encoding).
INVALID_REPLACEMENT_CHARACTER - Static variable in class org.owasp.encoder.CSSEncoder
Character used when an invalid characters is found.
INVALID_REPLACEMENT_CHARACTER - Static variable in class org.owasp.encoder.URIEncoder
The character to use when replacing an invalid character.
isNonCharacter(int) - Static method in class org.owasp.encoder.Unicode
Returns true if the argument is not a character according to the Unicode standard.

J

JAVA - Static variable in class org.owasp.encoder.Encoders
Name of Java String context.
JAVA_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for Java strings.
JavaEncoder - Class in org.owasp.encoder
JavaEncoder -- Encoder for Java based strings.
JavaEncoder() - Constructor for class org.owasp.encoder.JavaEncoder
 
JAVASCRIPT - Static variable in class org.owasp.encoder.Encoders
Name of JavaScript general context.
JAVASCRIPT_ATTRIBUTE - Static variable in class org.owasp.encoder.Encoders
Name of JavaScript attribute context.
JAVASCRIPT_ATTRIBUTE_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for JavaScript appearing in XML/HTML attributes.
JAVASCRIPT_BLOCK - Static variable in class org.owasp.encoder.Encoders
Name of JavaScript block context.
JAVASCRIPT_BLOCK_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for JavaScript appearing in HTML script blocks.
JAVASCRIPT_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for general JavaScript contexts.
JAVASCRIPT_SOURCE - Static variable in class org.owasp.encoder.Encoders
Name of JavaScript source context.
JAVASCRIPT_SOURCE_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for JavaScript in stand-alone contexts.
JavaScriptEncoder - Class in org.owasp.encoder
JavaScriptEncoder -- An encoder for JavaScript string contexts.
JavaScriptEncoder(JavaScriptEncoder.Mode, boolean) - Constructor for class org.owasp.encoder.JavaScriptEncoder
Constructs a new JavaScriptEncoder for the specified contextual mode.
JavaScriptEncoder.Mode - Enum in org.owasp.encoder
Mode of operation constants for the JavaScriptEncoder.

L

LEFT_OVER_BUFFER - Static variable in class org.owasp.encoder.EncodedWriter
Buffer to use for handling characters remaining in the input buffer after an encode.
LINE_SEPARATOR - Static variable in class org.owasp.encoder.Unicode
Unicode line separator character, must be encoded in some contexts.
LONG_BITS - Static variable in class org.owasp.encoder.CSSEncoder
Number of bits in a long.
LONG_BITS - Static variable in class org.owasp.encoder.URIEncoder
Number of bits in a long.
lowMask() - Method in enum org.owasp.encoder.CSSEncoder.Mode
Accessor for _lowMask.
lowMask() - Method in enum org.owasp.encoder.URIEncoder.Mode
Accessor for the low bit-mask.
LT - Static variable in class org.owasp.encoder.HTMLEncoder
Encoding for '<'.
LT_LENGTH - Static variable in class org.owasp.encoder.XMLEncoder
The encoded length of a less-than sign.

M

map(String, T) - Static method in class org.owasp.encoder.Encoders
Internal method to setup and map encoder singletons.
MAX_ASCII - Static variable in class org.owasp.encoder.Unicode
Highest ASCII (usually) valid ASCII char.
MAX_C1_CTRL_CHAR - Static variable in class org.owasp.encoder.Unicode
Highest C1 control character.
MAX_ENCODED_CHAR_LENGTH - Static variable in class org.owasp.encoder.URIEncoder
Maximum number of characters quired to encode a single input character.
MAX_ENCODED_CHAR_LENGTH - Static variable in class org.owasp.encoder.XMLEncoder
Maximum number of encoded characters per input character.
MAX_UTF8_2_BYTE - Static variable in class org.owasp.encoder.URIEncoder
Maximum code-point value that can be encoded with 2 utf-8 bytes.
maxEncodedLength(int) - Method in class org.owasp.encoder.CDATAEncoder
 
maxEncodedLength(int) - Method in class org.owasp.encoder.ChainedEncoder
 
maxEncodedLength(int) - Method in class org.owasp.encoder.CSSEncoder
 
maxEncodedLength(int) - Method in class org.owasp.encoder.Encoder
Returns the maximum encoded length (in chars) of an input sequence of n characters.
maxEncodedLength(int) - Method in class org.owasp.encoder.HTMLEncoder
 
maxEncodedLength(int) - Method in class org.owasp.encoder.JavaEncoder
 
maxEncodedLength(int) - Method in class org.owasp.encoder.JavaScriptEncoder
 
maxEncodedLength(int) - Method in class org.owasp.encoder.URIEncoder
 
maxEncodedLength(int) - Method in class org.owasp.encoder.XMLCommentEncoder
 
maxEncodedLength(int) - Method in class org.owasp.encoder.XMLEncoder
 
Mode() - Constructor for enum org.owasp.encoder.JavaScriptEncoder.Mode
 
Mode(long, long) - Constructor for enum org.owasp.encoder.URIEncoder.Mode
Constructor to create a mode with the specified bit-masks.
Mode(String) - Constructor for enum org.owasp.encoder.XMLEncoder.Mode
Sole constructor.
Mode(ASCIIBits) - Constructor for enum org.owasp.encoder.CSSEncoder.Mode
Creates a mode with the specified low and high bit-masks.

N

NEL - Static variable in class org.owasp.encoder.Unicode
"Next Line" C1 control character.
NON_CHAR_MASK - Static variable in class org.owasp.encoder.Unicode
Bit-mask for Unicode non-characaters (XXfffe and XXffff).

O

OCT_ESCAPE_LENGTH - Static variable in class org.owasp.encoder.JavaEncoder
The length of a octal escape sequence, e.g.
OCT_MASK - Static variable in class org.owasp.encoder.JavaEncoder
The bit-mask for an octal unit.
OCT_SHIFT - Static variable in class org.owasp.encoder.JavaEncoder
Number of bits to shift for each octal unit.
org.owasp.encoder - package org.owasp.encoder
 
OUTPUT_BUFFER_SIZE - Static variable in class org.owasp.encoder.Encode.Buffer
Output buffer size used to store the encoded output before wrapping in a string.
overflow(CharBuffer, int, CharBuffer, int) - Static method in class org.owasp.encoder.Encoder
Internal helper method to properly position buffers after encoding up until an overflow.

P

PARAGRAPH_SEPARATOR - Static variable in class org.owasp.encoder.Unicode
Unicode paragraph separator character, must be encoded in some contexts.
PERCENT_ENCODED_LENGTH - Static variable in class org.owasp.encoder.URIEncoder
Number of characters used to '%' encode a single hex-value.

Q

QUOT_LENGTH - Static variable in class org.owasp.encoder.XMLEncoder
The encoded length of a double-quotation character.

R

RESERVED_MASK_HIGH - Static variable in class org.owasp.encoder.URIEncoder
The second 64 RFC 3986 Reserved characters.
RESERVED_MASK_LOW - Static variable in class org.owasp.encoder.URIEncoder
RFC 3986 Reserved Characters.

S

set(int, int) - Method in class org.owasp.encoder.ASCIIBits
Sets a range of characters to 1s in the masks.
set(String) - Method in class org.owasp.encoder.ASCIIBits
Sets a bit to 1 for each character in the argument string.
SINGLE_QUOTED_ATTRIBUTE - org.owasp.encoder.XMLEncoder.Mode
Characters are encoded for single-quoted attribute values.
SOURCE - org.owasp.encoder.JavaScriptEncoder.Mode
Standard encoding of JavaScript Strings.
STRING - org.owasp.encoder.CSSEncoder.Mode
String contexts.

T

TAB - Static variable in class org.owasp.encoder.HTMLEncoder
Encoding for '\t'.
toString() - Method in class org.owasp.encoder.CDATAEncoder
 
toString() - Method in class org.owasp.encoder.ChainedEncoder
 
toString() - Method in class org.owasp.encoder.CSSEncoder
 
toString() - Method in class org.owasp.encoder.JavaScriptEncoder
 
toString() - Method in class org.owasp.encoder.URIEncoder
 
toString() - Method in class org.owasp.encoder.XMLCommentEncoder
 
toString() - Method in class org.owasp.encoder.XMLEncoder
 

U

U_ESCAPE_LENGTH - Static variable in class org.owasp.encoder.JavaEncoder
The length of a Unicode escape, e.g.
UHEX - Static variable in class org.owasp.encoder.URIEncoder
RFC 3986 -- "The uppercase hexadecimal digits 'A' through 'F' are equivalent to the lowercase digits 'a' through 'f', respectively.
underflow(CharBuffer, int, CharBuffer, int) - Static method in class org.owasp.encoder.Encoder
Internal helper method to properly position buffers after encoding up until an underflow.
Unicode - Class in org.owasp.encoder
ASCII and Unicode constants.
Unicode() - Constructor for class org.owasp.encoder.Unicode
No instances.
UNRESERVED_MASK_HIGH - Static variable in class org.owasp.encoder.URIEncoder
RFC 3986 Unreserved Characters.
UNRESERVED_MASK_LOW - Static variable in class org.owasp.encoder.URIEncoder
RFC 3986 Unreserved Characters.
UnsupportedContextException - Exception in org.owasp.encoder
UnsupportedContextException -- thrown when the encoding context specified is not known or supported.
UnsupportedContextException(String) - Constructor for exception org.owasp.encoder.UnsupportedContextException
Sole constructor.
URI - Static variable in class org.owasp.encoder.Encoders
Name of URI context.
URI_COMPONENT - Static variable in class org.owasp.encoder.Encoders
Name of URI component context.
URI_COMPONENT_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for components of URIs.
URI_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for full URIs.
URIEncoder - Class in org.owasp.encoder
URIEncoder -- An encoder for URI based contexts.
URIEncoder() - Constructor for class org.owasp.encoder.URIEncoder
Constructor equivalent to @{code URIEncoder(Mode.FULL_URI)}.
URIEncoder(URIEncoder.Mode) - Constructor for class org.owasp.encoder.URIEncoder
Constructor for the URIEncoder the specifies the encoding mode the URIEncoder will use.
URIEncoder.Mode - Enum in org.owasp.encoder
Encoding mode of operation for URI encodes.
URL - org.owasp.encoder.CSSEncoder.Mode
URL context.
UTF8_2_BYTE_FIRST_MSB - Static variable in class org.owasp.encoder.URIEncoder
When the encoded output requires 2 bytes, this is the high bits of the first byte.
UTF8_3_BYTE_FIRST_MSB - Static variable in class org.owasp.encoder.URIEncoder
When the encoded output requires 3 bytes, this is the high bits of the first byte.
UTF8_4_BYTE_FIRST_MSB - Static variable in class org.owasp.encoder.URIEncoder
When the encoded output requires 4 bytes, this is the high bits of the first byte.
UTF8_BYTE_MSB - Static variable in class org.owasp.encoder.URIEncoder
For all characters in a 2-4 byte encoded sequence after the first this is the high bits of the input bytes.
UTF8_MASK - Static variable in class org.owasp.encoder.URIEncoder
This is the mask containing 6-ones in the lower 6-bits.
UTF8_SHIFT - Static variable in class org.owasp.encoder.URIEncoder
UTF-8 encodes 6-bits of the code-point in each output UTF-8 byte.

V

validMask() - Method in enum org.owasp.encoder.XMLEncoder.Mode
valueOf(String) - Static method in enum org.owasp.encoder.CSSEncoder.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.owasp.encoder.JavaScriptEncoder.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.owasp.encoder.URIEncoder.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.owasp.encoder.XMLEncoder.Mode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.owasp.encoder.CSSEncoder.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.owasp.encoder.JavaScriptEncoder.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.owasp.encoder.URIEncoder.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.owasp.encoder.XMLEncoder.Mode
Returns an array containing the constants of this enum type, in the order they are declared.

W

write(char[], int, int) - Method in class org.owasp.encoder.EncodedWriter
 

X

XML - Static variable in class org.owasp.encoder.Encoders
Name of XML general context.
XML_ATTRIBUTE - Static variable in class org.owasp.encoder.Encoders
Name of XML attribute context.
XML_ATTRIBUTE_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for XML/HTML attribute contexts.
XML_COMMENT - Static variable in class org.owasp.encoder.Encoders
Name of XML comment context.
XML_COMMENT_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for XML comments.
XML_CONTENT - Static variable in class org.owasp.encoder.Encoders
Name of XML content context.
XML_CONTENT_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for XML/HTML content contexts.
XML_ENCODER - Static variable in class org.owasp.encoder.Encoders
Encoder for general XML/HTML contexts.
XMLCommentEncoder - Class in org.owasp.encoder
XMLCommentEncoder -- Encodes for the XML/HTML comment context.
XMLCommentEncoder() - Constructor for class org.owasp.encoder.XMLCommentEncoder
 
XMLEncoder - Class in org.owasp.encoder
XMLEncoder -- encoder for XML attribute and content data.
XMLEncoder() - Constructor for class org.owasp.encoder.XMLEncoder
Default constructor--equivalent to XMLEncoder(Mode.ALL).
XMLEncoder(XMLEncoder.Mode) - Constructor for class org.owasp.encoder.XMLEncoder
Creates an XMLEncoder for the specified mode constant.
XMLEncoder.Mode - Enum in org.owasp.encoder
An enum of supported "modes" of operation for the XMLEncoder.

_

_asciiOnly - Variable in class org.owasp.encoder.JavaScriptEncoder
True if the output should only include ASCII characters.
_buffer - Variable in class org.owasp.encoder.ChainedEncoder
The buffer used to store the output of the first encoder before sending as input to the second encoder.
_buffer - Variable in class org.owasp.encoder.EncodedWriter
Where encoded output is buffered before sending on to the output writer.
_encoder - Variable in class org.owasp.encoder.EncodedWriter
The encoder used to encode input to the output writer.
_first - Variable in class org.owasp.encoder.ChainedEncoder
The first encoder to apply in sequence.
_hasLeftOver - Variable in class org.owasp.encoder.EncodedWriter
Some encoders require more input or an explicit end-of-input flag before they will process the remaining characters of an input buffer.
_hexEncodeQuotes - Variable in class org.owasp.encoder.JavaScriptEncoder
True if quotation characters should be hex encoded.
_highMask - Variable in class org.owasp.encoder.CSSEncoder
The bit-mask of unescaped characters in the range 64 to 127.
_highMask - Variable in enum org.owasp.encoder.CSSEncoder.Mode
High bit-mask of unescaped characters.
_highMask - Variable in class org.owasp.encoder.URIEncoder
The bit-mask of characters that do not need to be escaped, for character with code-points in the range 64 to 127.
_highMask - Variable in enum org.owasp.encoder.URIEncoder.Mode
The high bit-mask--copied into the _highMask of the encoder.
_input - Variable in class org.owasp.encoder.Encode.Buffer
The input buffer.
_last - Variable in class org.owasp.encoder.ChainedEncoder
The second encoder to apply in sequence.
_leftOverBuffer - Variable in class org.owasp.encoder.EncodedWriter
See comment on _hasLeftOver.
_lowerMask - Variable in class org.owasp.encoder.ASCIIBits
Lower 64 bits.
_lowMask - Variable in class org.owasp.encoder.CSSEncoder
The bit-mask of unescaped characters in the range 0 to 63.
_lowMask - Variable in enum org.owasp.encoder.CSSEncoder.Mode
Low bit-mask of unescaped characters.
_lowMask - Variable in class org.owasp.encoder.URIEncoder
The bit-mask of characters that do not need to be escaped, for characters with code-points in the range 0 to 63.
_lowMask - Variable in enum org.owasp.encoder.URIEncoder.Mode
The low bit-mask--copied into the _lowMask of the encoder.
_mode - Variable in class org.owasp.encoder.CSSEncoder
The mode of operation, used primarily for toString.
_mode - Variable in class org.owasp.encoder.JavaScriptEncoder
The mode of operations--used for toString implementation.
_mode - Variable in class org.owasp.encoder.URIEncoder
The encoding mode for this encoder--used primarily for toString().
_mode - Variable in class org.owasp.encoder.XMLEncoder
The mode of operation--only really stored to provide a relevant toString implementation.
_out - Variable in class org.owasp.encoder.EncodedWriter
The wrapped writer.
_output - Variable in class org.owasp.encoder.Encode.Buffer
The output buffer.
_upperMask - Variable in class org.owasp.encoder.ASCIIBits
Upper 64 bits.
_validMask - Variable in class org.owasp.encoder.XMLEncoder
The mask of valid characters extracted from the mode for efficiency.
_validMask - Variable in enum org.owasp.encoder.XMLEncoder.Mode
The bit-mask of characters that do not need encoding in this mode.
_validMasks - Variable in class org.owasp.encoder.JavaScriptEncoder
An array of 4 32-bit integers used as bitmasks to check if a character needs encoding or not.
A B C D E F G H I J L M N O P Q R S T U V W X _ 
All Classes All Packages