|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.flagstone.transform.Export
public final class Export
Export is used to export one or more shapes and other objects so they can be used in another Flash file.
Since the identifier for an object is only unique within a given Flash file, each object exported is assigned a name so it can referenced when it is imported.
Constructor Summary | |
---|---|
Export()
Creates an Export object with an empty map. |
|
Export(Export object)
Creates and initialises an Export object using the values copied from another Export object. |
|
Export(Map<Integer,String> map)
Creates an Export object with the specified map. |
|
Export(SWFDecoder coder)
Creates and initialises an Export object using values encoded in the Flash binary format. |
Method Summary | |
---|---|
Export |
add(int uid,
String aString)
Adds the identifier and name to the list of objects to be exported. |
Export |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
Map<Integer,String> |
getObjects()
Get the table of objects to be exported. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setObjects(Map<Integer,String> aTable)
Sets the table of objects to be exported. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Export(SWFDecoder coder) throws IOException
coder
- an SWFDecoder object that contains the encoded Flash data.
IOException
- if an error occurs while decoding the data.public Export()
public Export(Map<Integer,String> map)
map
- the table containing identifier/name pairs for the objects
that will be exported from the movie.public Export(Export object)
object
- a Export object from which the values will be
copied.Method Detail |
---|
public Export add(int uid, String aString)
uid
- the identifier of the object to be exported.aString
- the name of the exported object to allow it to be referenced.
The name must not be null or an empty string.
public Map<Integer,String> getObjects()
public void setObjects(Map<Integer,String> aTable)
aTable
- the table of objects being imported. Must not be null.public Export copy()
copy
in interface Copyable<MovieTag>
public String toString()
toString
in class Object
public int prepareToEncode(Context context)
prepareToEncode
in interface SWFEncodeable
context
- an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder, Context context) throws IOException
encode
in interface SWFEncodeable
coder
- an SWFEncoder object.context
- an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException
- if an error occurs while encoding the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |