pt.tumba.parser.swf
Class Image.JPEG

java.lang.Object
  extended by pt.tumba.parser.swf.Symbol
      extended by pt.tumba.parser.swf.Image
          extended by pt.tumba.parser.swf.Image.JPEG
Enclosing class:
Image

public static class Image.JPEG
extends Image

A JPEG Image that can be used as a fill for Shapes. The JPEG image must be "baseline" - a "progressive" JPEG will cause the Flash player to have runtime problems.

Author:
unknown

Nested Class Summary
 
Nested classes/interfaces inherited from class pt.tumba.parser.swf.Image
Image.JPEG, Image.Lossless
 
Field Summary
protected  byte[] jpegData
          Description of the Field
protected  java.io.InputStream jpegIn
          Description of the Field
 
Fields inherited from class pt.tumba.parser.swf.Symbol
id
 
Constructor Summary
Image.JPEG(byte[] imageData)
          Construct a JPEG image from byte data.
Image.JPEG(java.io.InputStream jpegImage)
          A JPEG image that will read from an input stream.
 
Method Summary
protected  int defineSymbol(Movie movie, SWFTagTypes timelineWriter, SWFTagTypes definitionWriter)
          Description of the Method
 byte[] getImageData()
          Get the raw image data.
 
Methods inherited from class pt.tumba.parser.swf.Symbol
define, getId, getNextId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jpegIn

protected java.io.InputStream jpegIn
Description of the Field


jpegData

protected byte[] jpegData
Description of the Field

Constructor Detail

Image.JPEG

public Image.JPEG(java.io.InputStream jpegImage)
A JPEG image that will read from an input stream.

Parameters:
jpegImage - Description of the Parameter

Image.JPEG

public Image.JPEG(byte[] imageData)
Construct a JPEG image from byte data. Note that the data must include the JPEG header ( 0xff,0xd9,0xff,0xd8 ).

Parameters:
imageData - Description of the Parameter
Method Detail

getImageData

public byte[] getImageData()
Get the raw image data. This will include the JPEG stream header(s) ( 0xff,0xd9,0xff,0xd8 ).

Returns:
The imageData value

defineSymbol

protected int defineSymbol(Movie movie,
                           SWFTagTypes timelineWriter,
                           SWFTagTypes definitionWriter)
                    throws java.io.IOException
Description of the Method

Specified by:
defineSymbol in class Symbol
Parameters:
movie - Description of the Parameter
timelineWriter - Description of the Parameter
definitionWriter - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception