Overview | Package | Class | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Deprecated API

Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

Deprecated Interfaces
com.flagstone.transform.FSMovieListener the FSMovieListener interface will no longer be used future release to report decoding and encoding events and to report errors. Instead methods which report errors through exceptions are preferred. If an error occurs then it is due to a design error or corrupt data in a Flash file which cannot be easily recovered from therefore the FSMovieListener interface will no longer be used. The FSMovieListener interface defines the methods required to register an object to receive event information from an FSMovie object as it encodes and decodes Flash movies.

Deprecated Classes
com.flagstone.transform.util.FSCodec FSCoded is replaced by FSCoder from com.flagstone.transform so there is only one class for reading and writing data. FSCodec is a similar to Java stream classes, allowing words and bit fields to be read and written from an internal array of bytes. FSCodec supports both little-endian and big-endian byte ordering. The primary use of the class is to support post-processing of sound files loaded using the FSSoundConstructor class where the encoded sound samples contain bits fields. For example compressing 16-bit, byte-aligned sound samples to the ADPCM format. However the class may be used in any situation where data must be encoded or decoded to an array of bytes. The FSCodec class maintains an internal pointer which points to the next bit in the internal array where data will be read or written. When calculating an offset in bytes to jump to simply multiply the offset by 8 for the correct bit position. The class provides accessor methods, getPosition() and setPosition() to change the location of the internal pointer. When writing to an array the size of the array is changed dynamically should a write operation cause a buffer overflow. For reads if an overflow results then the bits/bytes that overflowed will be set to zero, rather than throwing an exception. The eof() method can be used to determine whether the end of the buffer has been reached.
com.flagstone.transform.FSMovieEvent the FSMovieEvent will no longer be supported in future releases to report decoding and encoding events and to report errors. Instead methods which report errors through exceptions are preferred. If an error occurs then it is due to an error which cannot be easily recovered from therefore the FSMovieEvent will no longer be used. The FSMovieEvent class is a container class for the information generated for events while a movie is being encoded or decoded.
com.flagstone.transform.util.TransformUtil No longer used with the merging of Transform Utilties into the main Transform SWF distribution.

Deprecated Fields
com.flagstone.transform.Transform.DEBUG No longer required for debugging. DEBUG is used to turn on additional logging and error checking.

Deprecated Methods
com.flagstone.transform.FSMovie.decodeFromData(byte[], FSMovieListener) use the decodeFromData(bytep[]) method which throws an exception if an error is detected.
com.flagstone.transform.FSMovie.decodeFromFile(String, FSMovieListener) use the decodeFromFile(String) method which throws an exception if an error is detected.
com.flagstone.transform.FSMovie.encode(FSMovieListener) use the encode() method which throws an exception if an error is detected.
com.flagstone.transform.FSMovie.encodeToFile(String, FSMovieListener) use the encodeToFile(String) method which throws an exception if an error is detected.
com.flagstone.transform.FSMovieListener.logEvent(FSMovieEvent) The FSMovie object calls this method to send FSMovieEvent object to a registered listener.

Deprecated Constructors
com.flagstone.transform.FSMovie(byte[], FSMovieListener) using the constructor FSMovie(byte[]) which throws an exception if an error is detected.
com.flagstone.transform.FSMovie(String, FSMovieListener)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES