Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.cantaloop.tools.conversion
Class LinkedConverter  view LinkedConverter download LinkedConverter.java

java.lang.Object
  extended byorg.cantaloop.tools.conversion.AbstractConverter
      extended byorg.cantaloop.tools.conversion.LinkedConverter
All Implemented Interfaces:
Converter

public class LinkedConverter
extends AbstractConverter

Chains two converters. Converts a given object to an intermediate type using the first converter and then converts it to the desired output type using the second converter.

Version:
@version@ ($Revision: 1.4 $)

Field Summary
private  Converter m_first
           
private  java.lang.Class m_intermediateClass
           
private  Converter m_second
           
 
Fields inherited from class org.cantaloop.tools.conversion.AbstractConverter
m_inputTypes, m_outputTypes
 
Constructor Summary
LinkedConverter(Converter first, Converter second, java.lang.Class intermediateClass)
           
 
Method Summary
 java.lang.Object convert(java.lang.Object input, java.lang.Class outputClass)
          Describe convert method here.
 
Methods inherited from class org.cantaloop.tools.conversion.AbstractConverter
checkTypes, getInputTypes, getOutputTypes, throwException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_first

private Converter m_first

m_second

private Converter m_second

m_intermediateClass

private java.lang.Class m_intermediateClass
Constructor Detail

LinkedConverter

public LinkedConverter(Converter first,
                       Converter second,
                       java.lang.Class intermediateClass)
Method Detail

convert

public java.lang.Object convert(java.lang.Object input,
                                java.lang.Class outputClass)
                         throws ConversionException
Describe convert method here.