org.mmbase.streams.transcoders
Class MockAnalyzer

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

public class MockAnalyzer
extends Object
implements Analyzer

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

Field Summary
protected  AnalyzerUtils util
           
protected  int x
           
protected  int y
           
 
Constructor Summary
MockAnalyzer()
           
 
Method Summary
 void addLogger(Logger logger)
           
 void addThrowable(Throwable t)
           
 void analyze(String l, Node source, Node des)
          Analyzes a line of logging of
 MockAnalyzer 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 sourceNode, Node destNode)
           
 void setX(int x)
           
 void setY(int y)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

util

protected final AnalyzerUtils util

x

protected int x

y

protected int y
Constructor Detail

MockAnalyzer

public MockAnalyzer()
Method Detail

setX

public void setX(int x)

setY

public void setY(int y)

addThrowable

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

addLogger

public void addLogger(Logger logger)
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 des)
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.
des - The node representing the mediasource to which the transcoding result is being written.

ready

public void ready(Node sourceNode,
                  Node destNode)
Specified by:
ready in interface Analyzer

clone

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


MMBase 2.0-SNAPSHOT - null