1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 package org.archive.crawler.extractor;
28
29 import java.io.IOException;
30 import java.util.Vector;
31
32 import com.anotherbigidea.flash.interfaces.SWFActions;
33 import com.anotherbigidea.flash.writers.SWFTagTypesImpl;
34
35 /***
36 * Overwrite action tags, that may hold URI, to use <code>CrawlUriSWFAction
37 * <code> action.
38 *
39 * @author Igor Ranitovic
40 */
41 public class CustomSWFTags extends SWFTagTypesImpl {
42 SWFActions actions;
43
44 public CustomSWFTags(SWFActions a) {
45 super(null);
46 actions = a;
47 }
48
49 public SWFActions tagDefineButton(int id, Vector buttonRecords)
50 throws IOException {
51
52 return actions;
53 }
54
55 public SWFActions tagDefineButton2(int id, boolean trackAsMenu,
56 Vector buttonRecord2s) throws IOException {
57
58 return actions;
59 }
60
61 public SWFActions tagDoAction() throws IOException {
62 return actions;
63 }
64 }