Pacchetto | mx.utils |
Classe | public class Base64Encoder |
Ereditarietà | Base64Encoder Object |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Proprietà | Definito da | ||
---|---|---|---|
constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | 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 [statico]
The character codepoint to be inserted into the encoded output to
denote a new line if insertNewLines is true. | Base64Encoder |
Metodo | Definito da | ||
---|---|---|---|
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 | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Clears all buffers and resets the encoder to its initial state. | Base64Encoder | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Returns the current buffer as a Base64 encoded String. | Base64Encoder | ||
Restituisce il valore di base dell'oggetto specificato. | Object |
Costante | Definito da | ||
---|---|---|---|
CHARSET_UTF_8 : String = "UTF-8" [statico]
Constant definition for the string "UTF-8". | Base64Encoder |
insertNewLines | proprietà |
public var insertNewLines:Boolean = true
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | 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 | proprietà |
public static var newLine:int = 10
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | 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 | () | Funzione di costruzione |
public function Base64Encoder()
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Constructor.
encode | () | metodo |
public function encode(data:String, offset:uint = 0, length:uint = 0):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | 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.
Parametri
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 | () | metodo |
public function encodeBytes(data:ByteArray, offset:uint = 0, length:uint = 0):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | 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.
Parametri
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 | () | metodo |
public function encodeUTFBytes(data:String):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | 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.
Parametri
data:String — The String to encode.
|
reset | () | metodo |
public function reset():void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Clears all buffers and resets the encoder to its initial state.
toString | () | metodo |
public function toString():String
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | 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.
RestituisceString — The Base64 encoded String.
|
CHARSET_UTF_8 | Costante |
public static const CHARSET_UTF_8:String = "UTF-8"
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Constant definition for the string "UTF-8".
Tue Jun 12 2018, 02:44 PM Z