Class XmlStreamToObjectConverter

    • Constructor Summary

      Constructors 
      Constructor Description
      XmlStreamToObjectConverter​(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper, io.micronaut.core.convert.ConversionService<?> conversionService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Object> convert​(ByteArrayXmlStreamReader stream, java.lang.Class<java.lang.Object> targetType, io.micronaut.core.convert.ConversionContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.core.convert.TypeConverter

        convert
    • Constructor Detail

      • XmlStreamToObjectConverter

        public XmlStreamToObjectConverter​(com.fasterxml.jackson.dataformat.xml.XmlMapper xmlMapper,
                                          io.micronaut.core.convert.ConversionService<?> conversionService)
        Parameters:
        xmlMapper - The XML Mapper
        conversionService - The conversion service
    • Method Detail

      • convert

        public java.util.Optional<java.lang.Object> convert​(ByteArrayXmlStreamReader stream,
                                                            java.lang.Class<java.lang.Object> targetType,
                                                            io.micronaut.core.convert.ConversionContext context)
        Specified by:
        convert in interface io.micronaut.core.convert.TypeConverter<ByteArrayXmlStreamReader,​java.lang.Object>