KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > serialization > SWFSerializer


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.cocoon.serialization;
18
19 import java.io.OutputStream JavaDoc;
20
21 import de.tivano.flash.swf.publisher.SWFWriter;
22
23 /**
24  * uses the project http://developer.berlios.de/projects/spark-xml/
25  *
26  * @author <a HREF="mailto:tcurdt@apache.org">Torsten Curdt</a>
27  * @version CVS $Id: SWFSerializer.java 105790 2004-11-19 07:37:46Z antonio $
28  */

29 public class SWFSerializer extends AbstractSerializer {
30     
31     private final static String JavaDoc mimeType = "application/x-shockwave-flash";
32
33     private SWFWriter handler;
34
35     public String JavaDoc getMimeType() {
36         return mimeType;
37     }
38
39     public void setOutputStream(OutputStream JavaDoc out) {
40         handler = new SWFWriter(out);
41         this.contentHandler = handler;
42     }
43 }
44
Popular Tags