org.apache.commons.flatfile.morph
Class TextToByteConverter

java.lang.Object
  extended by net.sf.morph.transform.transformers.BaseTransformer
      extended by org.apache.commons.flatfile.morph.TextToByteConverter
All Implemented Interfaces:
net.sf.composite.Component, net.sf.morph.transform.Converter, net.sf.morph.transform.DecoratedConverter, net.sf.morph.transform.DecoratedTransformer, net.sf.morph.transform.ExplicitTransformer, net.sf.morph.transform.Transformer

public class TextToByteConverter
extends net.sf.morph.transform.transformers.BaseTransformer
implements net.sf.morph.transform.DecoratedConverter

Text to byte converter.

Version:
$Revision: 758023 $ $Date: 2009-03-24 16:09:19 -0500 (Tue, 24 Mar 2009) $

Field Summary
 
Fields inherited from class net.sf.morph.transform.transformers.BaseTransformer
destinationClasses, log, sourceClasses
 
Fields inherited from interface net.sf.morph.transform.Transformer
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY
 
Fields inherited from interface net.sf.morph.transform.Transformer
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY
 
Constructor Summary
TextToByteConverter()
           
 
Method Summary
protected  Object convertImpl(Class destinationClass, Object source, Locale locale)
          
protected  Class<?>[] getDestinationClassesImpl()
          
protected  Class<?>[] getSourceClassesImpl()
          
 net.sf.morph.transform.DecoratedConverter getTextConverter()
          Get the DecoratedConverter textConverter.
protected  boolean isTransformableImpl(Class destinationType, Class sourceType)
          
 void setTextConverter(net.sf.morph.transform.DecoratedConverter textConverter)
          Set the DecoratedConverter textConverter.
 
Methods inherited from class net.sf.morph.transform.transformers.BaseTransformer
clone, convert, convert, copy, copy, copyImpl, createDefaultReflector, createNewInstance, createNewInstanceImpl, createReusableSource, equals, equals, equalsUnidirectionalTest, getDestinationClasses, getInstantiatingReflector, getLocale, getLog, getNestedTransformer, getReflector, getReflector, getSourceClasses, getTransformableCallCache, getTransformerName, initialize, initializeImpl, isAutomaticallyHandlingNulls, isCachingIsTransformableCalls, isImpreciseTransformation, isImpreciseTransformationImpl, isInitialized, isPerformingLogging, isTransformable, isWrappingRuntimeExceptions, setCachingIsTransformableCalls, setDestinationClasses, setInitialized, setLog, setNestedTransformer, setReflector, setSourceClasses, setTransformableCallCache, setTransformerName, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.morph.transform.DecoratedConverter
convert, equals, equals
 
Methods inherited from interface net.sf.morph.transform.Converter
convert
 
Methods inherited from interface net.sf.morph.transform.Transformer
getDestinationClasses, getSourceClasses
 
Methods inherited from interface net.sf.morph.transform.Transformer
getDestinationClasses, getSourceClasses
 
Methods inherited from interface net.sf.morph.transform.ExplicitTransformer
isTransformable
 

Constructor Detail

TextToByteConverter

public TextToByteConverter()
Method Detail

convertImpl

protected Object convertImpl(Class destinationClass,
                             Object source,
                             Locale locale)
                      throws Exception

Overrides:
convertImpl in class net.sf.morph.transform.transformers.BaseTransformer
Throws:
Exception

getDestinationClassesImpl

protected Class<?>[] getDestinationClassesImpl()
                                        throws Exception

Specified by:
getDestinationClassesImpl in class net.sf.morph.transform.transformers.BaseTransformer
Throws:
Exception

getSourceClassesImpl

protected Class<?>[] getSourceClassesImpl()
                                   throws Exception

Specified by:
getSourceClassesImpl in class net.sf.morph.transform.transformers.BaseTransformer
Throws:
Exception

isTransformableImpl

protected boolean isTransformableImpl(Class destinationType,
                                      Class sourceType)
                               throws Exception

Overrides:
isTransformableImpl in class net.sf.morph.transform.transformers.BaseTransformer
Throws:
Exception

getTextConverter

public net.sf.morph.transform.DecoratedConverter getTextConverter()
Get the DecoratedConverter textConverter.

Returns:
DecoratedConverter

setTextConverter

public void setTextConverter(net.sf.morph.transform.DecoratedConverter textConverter)
Set the DecoratedConverter textConverter.

Parameters:
textConverter - DecoratedConverter


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.