Paket | mx.utils |
Klass | public class Base64Encoder |
Arv | Base64Encoder Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
insertNewLines : Boolean = true
A Boolean flag to control whether the sequence of characters specified
for Base64Encoder.newLine are inserted every 76 characters
to wrap the encoded output. | Base64Encoder | ||
newLine : int = 10 [statisk]
The character codepoint to be inserted into the encoded output to
denote a new line if insertNewLines is true. | Base64Encoder |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | Base64Encoder | ||
Encodes the characters of a String in Base64 and adds the result to
an internal buffer. | Base64Encoder | ||
Encodes a ByteArray in Base64 and adds the result to an internal buffer. | Base64Encoder | ||
Encodes the UTF-8 bytes of a String in Base64 and adds the result to an
internal buffer. | Base64Encoder | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Clears all buffers and resets the encoder to its initial state. | Base64Encoder | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returns the current buffer as a Base64 encoded String. | Base64Encoder | ||
Returnerar det angivna objektets primitiva värde. | Object |
Konstant | Definieras med | ||
---|---|---|---|
CHARSET_UTF_8 : String = "UTF-8" [statisk]
Constant definition for the string "UTF-8". | Base64Encoder |
insertNewLines | egenskap |
public var insertNewLines:Boolean = true
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
A Boolean flag to control whether the sequence of characters specified
for Base64Encoder.newLine
are inserted every 76 characters
to wrap the encoded output.
The default is true.
newLine | egenskap |
public static var newLine:int = 10
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The character codepoint to be inserted into the encoded output to
denote a new line if insertNewLines
is true.
The default is 10
to represent the line feed \n
.
Base64Encoder | () | Konstruktor |
public function Base64Encoder()
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor.
encode | () | metod |
public function encode(data:String, offset:uint = 0, length:uint = 0):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Encodes the characters of a String in Base64 and adds the result to an internal buffer. Strings must be in ASCII format.
Subsequent calls to this method add on to the
internal buffer. After all data have been encoded, call
toString()
to obtain a Base64 encoded String.
Parametrar
data:String — The String to encode.
| |
offset:uint (default = 0 ) — The character position from which to start encoding.
| |
length:uint (default = 0 ) — The number of characters to encode from the offset.
|
encodeBytes | () | metod |
public function encodeBytes(data:ByteArray, offset:uint = 0, length:uint = 0):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Encodes a ByteArray in Base64 and adds the result to an internal buffer.
Subsequent calls to this method add on to the internal buffer. After all
data have been encoded, call toString()
to obtain a
Base64 encoded String.
Parametrar
data:ByteArray — The ByteArray to encode.
| |
offset:uint (default = 0 ) — The index from which to start encoding.
| |
length:uint (default = 0 ) — The number of bytes to encode from the offset.
|
encodeUTFBytes | () | metod |
public function encodeUTFBytes(data:String):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Encodes the UTF-8 bytes of a String in Base64 and adds the result to an
internal buffer. The UTF-8 information does not contain a length prefix.
Subsequent calls to this method add on to the internal buffer. After all
data have been encoded, call toString()
to obtain a Base64
encoded String.
Parametrar
data:String — The String to encode.
|
reset | () | metod |
public function reset():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Clears all buffers and resets the encoder to its initial state.
toString | () | metod |
public function toString():String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the current buffer as a Base64 encoded String. Note that calling this method also clears the buffer and resets the encoder to its initial state.
ReturnerarString — The Base64 encoded String.
|
CHARSET_UTF_8 | Konstant |
public static const CHARSET_UTF_8:String = "UTF-8"
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constant definition for the string "UTF-8".
Tue Jun 12 2018, 01:40 PM Z