KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > archive > crawler > extractor > CustomSWFTags


1 /*
2  * SWFCustomAction
3  *
4  * $Id: CustomSWFTags.java,v 1.3 2005/04/14 21:48:28 stack-sf Exp $
5  *
6  * Created on Mar 19, 2004
7  *
8  * Copyright (C) 2004 Internet Archive.
9  *
10  * This file is part of the Heritrix web crawler (crawler.archive.org).
11  *
12  * Heritrix is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser Public License as published by
14  * the Free Software Foundation; either version 2.1 of the License, or
15  * any later version.
16  *
17  * Heritrix is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Lesser Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser Public License
23  * along with Heritrix; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25  */

26
27 package org.archive.crawler.extractor;
28
29 import java.io.IOException JavaDoc;
30 import java.util.Vector JavaDoc;
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 JavaDoc buttonRecords)
50             throws IOException JavaDoc {
51
52         return actions;
53     }
54
55     public SWFActions tagDefineButton2(int id, boolean trackAsMenu,
56             Vector JavaDoc buttonRecord2s) throws IOException JavaDoc {
57
58         return actions;
59     }
60
61     public SWFActions tagDoAction() throws IOException JavaDoc {
62         return actions;
63     }
64 }
65
Popular Tags