Package | mx.utils |
Class | public class Base64Decoder |
Inheritance | Base64Decoder ![]() |
Method | Defined By | ||
---|---|---|---|
Constructor. | Base64Decoder | ||
Decodes a Base64 encoded String and adds the result to an internal
buffer. | Base64Decoder | ||
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
Clears all buffers and resets the decoder to its initial state. | Base64Decoder | ||
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
Returns the current buffer as a decoded flash.utils.ByteArray. | Base64Decoder | ||
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object |
Base64Decoder | () | Constructor |
public function Base64Decoder()
Constructor.
decode | () | method |
public function decode(encoded:String):void
Decodes a Base64 encoded String 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 toByteArray()
to obtain a decoded flash.utils.ByteArray
.
Parameters
encoded:String — The Base64 encoded String to decode.
|
reset | () | method |
public function reset():void
Clears all buffers and resets the decoder to its initial state.
toByteArray | () | method |
public function toByteArray():ByteArray
Returns the current buffer as a decoded flash.utils.ByteArray
.
Note that calling this method also clears the buffer and resets the
decoder to its initial state.
ByteArray — The decoded flash.utils.ByteArray .
|