Packagecom.adobe.net
Classpublic class URIEncodingBitmap
InheritanceURIEncodingBitmap Inheritance flash.utils.ByteArray

This class implements an efficient lookup table for URI character escaping. This class is only needed if you create a derived class of URI to handle custom URI syntax. This class is used internally by URI.



Public Methods
 MethodDefined by
  
URIEncodingBitmap(charsToEscape:String)
Constructor.
URIEncodingBitmap
  
ShouldEscape(char:String):int
Based on the data table contained in this object, check if the given character should be escaped.
URIEncodingBitmap
Constructor detail
URIEncodingBitmap()constructor
public function URIEncodingBitmap(charsToEscape:String)

Constructor. Creates an encoding bitmap using the given string of characters as the set of characters that need to be URI escaped.

Parameters
charsToEscape:String
Method detail
ShouldEscape()method
public function ShouldEscape(char:String):int

Based on the data table contained in this object, check if the given character should be escaped.

Parameters
char:String — the character to be escaped. Only the first character in the string is used. Any other characters are ignored.

Returns
int — the integer value of the raw UTF8 character. For example, if '%' is given, the return value is 37 (0x25). If the character given does not need to be escaped, the return value is zero.