flexlib :: library Documentation | All Packages | All Classes | Index | Frames No Frames |
IconParserFactory

Package | flexlib.controls.iconLoaderClasses
Class | public class IconParserFactory
Inheritance | IconParserFactory Object

Factory class to create a new object that implements the <codeph>IIconParser</codeph> interface.

Public Methods

| Method | Defined By
--- | --- | ---
|  | newParser(data:ByteArray):IIconParser [static] Reads the first few bytes from data and returns an object that implements IIconParser. | IconParserFactory

Method Detail

newParser | () | method

`public static function newParser(data:ByteArray):IIconParser`

Reads the first few bytes from <codeph>data</codeph> and returns an object that implements <codeph>IIconParser</codeph>. If no parser is available for the data, <codeph>null</codeph> is returned

Parameters

| `data:ByteArray`

Returns

| `IIconParser`

Dimanche Juin 19 2011, 03:12 PM +02:00