net.sf.mmm.util.value.impl
Class ValueConverterToArrayOfByte

java.lang.Object
  extended by net.sf.mmm.util.component.base.AbstractComponent
      extended by net.sf.mmm.util.component.base.AbstractLoggableComponent
          extended by net.sf.mmm.util.value.base.AbstractValueConverter<SOURCE,TARGET>
              extended by net.sf.mmm.util.value.base.AbstractRecursiveValueConverter<Object,CONTAINER>
                  extended by net.sf.mmm.util.value.impl.AbstractValueConverterToContainer<ARRAY>
                      extended by net.sf.mmm.util.value.impl.AbstractConverterToArray<byte[]>
                          extended by net.sf.mmm.util.value.impl.ValueConverterToArrayOfByte
All Implemented Interfaces:
SimpleValueConverter<Object,byte[]>, ValueConverter<Object,byte[]>

@Singleton
@Named
public class ValueConverterToArrayOfByte
extends AbstractConverterToArray<byte[]>

This is an implementation of the ValueConverter interface that converts an Object to byte[].

Since:
1.1.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
 
Fields inherited from class net.sf.mmm.util.value.impl.AbstractValueConverterToContainer
ELEMENT_ESCAPE_END, ELEMENT_ESCAPE_START, ELEMENT_SEPARATOR
 
Constructor Summary
ValueConverterToArrayOfByte()
          The constructor.
 
Method Summary
 Class<byte[]> getTargetType()
          Is the guaranteed return-type of the conversion.
 
Methods inherited from class net.sf.mmm.util.value.impl.AbstractConverterToArray
convertContainerEntry, createContainer, doInitialize
 
Methods inherited from class net.sf.mmm.util.value.impl.AbstractValueConverterToContainer
convert, convertFromArray, convertFromCollection, convertFromString, getCollectionReflectionUtil, getSourceType, setCollectionReflectionUtil
 
Methods inherited from class net.sf.mmm.util.value.base.AbstractRecursiveValueConverter
getComposedValueConverter, setComposedValueConverter
 
Methods inherited from class net.sf.mmm.util.value.base.AbstractValueConverter
convert, getReflectionUtil, setReflectionUtil
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent
getLogger, setLogger
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractComponent
doInitialized, getInitializationState, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueConverterToArrayOfByte

public ValueConverterToArrayOfByte()
The constructor.

Method Detail

getTargetType

public Class<byte[]> getTargetType()
Is the guaranteed return-type of the conversion. This information is used externally to choose the most specific ValueConverter that is appropriate for the conversion.
E.g. a generic converter can have Object as target-type while a specific converter may have Collection as target-type. Now if an object (compliant with the source-type) needs to be converted to a Collection or List, the specific converter is used while for other objects the generic converter is chosen.
Please note that the target-type is often more general than the actual returned result. So a ValueConverter that converts a comma-separated String to an ArrayList will typically declare List as target-type.

Returns:
the target-type.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.