org.mmbase.streams.transcoders
Class ChainedAnalyzer

java.lang.Object
  extended by org.mmbase.streams.transcoders.ChainedAnalyzer
All Implemented Interfaces:
Serializable, Cloneable, Analyzer, PublicCloneable<Analyzer>

public class ChainedAnalyzer
extends Object
implements Analyzer

Makes it possible to chain analyzers one after another.

Version:
$Id: ChainedAnalyzer.java 39936 2009-11-25 14:05:18Z andre $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Constructor Summary
ChainedAnalyzer()
           
 
Method Summary
 void add(Analyzer a)
           
 void addLogger(Logger l)
           
 void addThrowable(Throwable t)
           
 void analyze(String l, Node source, Node dest)
          Analyzes a line of logging of
 ChainedAnalyzer clone()
           
 int getMaxLines()
          How many lines of logging should be offered for Analyzer.analyze(java.lang.String, org.mmbase.bridge.Node, org.mmbase.bridge.Node)ing at the most.
 void ready(Node source, Node dest)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedAnalyzer

public ChainedAnalyzer()
Method Detail

addThrowable

public void addThrowable(Throwable t)
Specified by:
addThrowable in interface Analyzer

add

public void add(Analyzer a)

addLogger

public void addLogger(Logger l)
Specified by:
addLogger in interface Analyzer

getMaxLines

public int getMaxLines()
Description copied from interface: Analyzer
How many lines of logging should be offered for Analyzer.analyze(java.lang.String, org.mmbase.bridge.Node, org.mmbase.bridge.Node)ing at the most.

Specified by:
getMaxLines in interface Analyzer

analyze

public void analyze(String l,
                    Node source,
                    Node dest)
Description copied from interface: Analyzer
Analyzes a line of logging of

Specified by:
analyze in interface Analyzer
Parameters:
l - This line
source - The node representing the original mediasource.
dest - The node representing the mediasource to which the transcoding result is being written.

ready

public void ready(Node source,
                  Node dest)
Specified by:
ready in interface Analyzer

clone

public ChainedAnalyzer clone()
Specified by:
clone in interface PublicCloneable<Analyzer>
Overrides:
clone in class Object


MMBase 2.0-SNAPSHOT - null