Source code: com/anotherbigidea/flash/interfaces/SWFFileSignature.java
1 /*
2 * Created on Jul 4, 2003
3 */
4 package com.anotherbigidea.flash.interfaces;
5
6 /**
7 * Interface for passing the SWF file signature.
8 *
9 * This allows the new Flash 6/MX Compressed File signature to be specified.
10 * If this interface is not implemented, or the signature(..) method is not
11 * called then the assumption is that the file signature is the normal,
12 * non-compressed, one.
13 *
14 * @author D.N.G. Main
15 */
16 public interface SWFFileSignature {
17
18 //--File signatures
19 public static final String SIGNATURE_NORMAL = "FWS";
20 public static final String SIGNATURE_COMPRESSED = "CWS";
21
22 /**
23 * Pass the signature. This method must be called before the header(..)
24 * method in SWFHeader.
25 * @param sig the 3 char signature - one of the SIGNATURE_* constants.
26 */
27 public void signature( String sig );
28 }