KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > media > exampleplugins > NullPlugin


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.media.exampleplugins;
8
9 import org.jboss.logging.Logger;
10 import org.jboss.media.engine.MediaPlugin;
11
12 /**
13  * @version <tt>$Revision: 1.2 $</tt>
14  * @author <a HREF="mailto:spyridon_samothrakis@yahoo.com">Spyridon Samothrakis</a>
15  */

16 public class NullPlugin extends MediaPlugin
17 {
18
19    private static Logger log = Logger.getLogger(NullPlugin.class);
20    /* (non-Javadoc)
21     * @see org.jboss.media.engine.MediaPlugin#process(javax.media.Buffer)
22     */

23    public int process(Object JavaDoc output)
24    {
25       log.info("I am a null plugin , I do nothing!");
26       return 0;
27    }
28
29 }
30
Popular Tags