Examples of ByteArrayConverter


Examples of org.apache.commons.beanutils.converters.ByteArrayConverter

        converters.put(booleanArray.getClass(),
                       new BooleanArrayConverter(booleanArray));
        converters.put(Byte.TYPE, new ByteConverter(defaultByte));
        converters.put(Byte.class, new ByteConverter(defaultByte));
        converters.put(byteArray.getClass(),
                       new ByteArrayConverter(byteArray));
        converters.put(Character.TYPE,
                       new CharacterConverter(defaultCharacter));
        converters.put(Character.class,
                       new CharacterConverter(defaultCharacter));
        converters.put(charArray.getClass(),
View Full Code Here

Examples of org.apache.commons.beanutils.converters.ByteArrayConverter

        converters.put(booleanArray.getClass(),
                       new BooleanArrayConverter(booleanArray));
        converters.put(Byte.TYPE, new ByteConverter(defaultByte));
        converters.put(Byte.class, new ByteConverter(defaultByte));
        converters.put(byteArray.getClass(),
                       new ByteArrayConverter(byteArray));
        converters.put(Character.TYPE,
                       new CharacterConverter(defaultCharacter));
        converters.put(Character.class,
                       new CharacterConverter(defaultCharacter));
        converters.put(charArray.getClass(),
View Full Code Here

Examples of org.apache.commons.beanutils.converters.ByteArrayConverter

        register(booleanArray.getClass(),
                       new BooleanArrayConverter(booleanArray));
        register(Byte.TYPE, new ByteConverter(defaultByte));
        register(Byte.class, new ByteConverter(defaultByte));
        register(byteArray.getClass(),
                       new ByteArrayConverter(byteArray));
        register(Character.TYPE,
                       new CharacterConverter(defaultCharacter));
        register(Character.class,
                       new CharacterConverter(defaultCharacter));
        register(charArray.getClass(),
View Full Code Here

Examples of org.apache.commons.beanutils.converters.ByteArrayConverter

        cub.register(
            new BooleanArrayConverter(), booleanArray.getClass());
        cub.register(new ByteConverter(), Byte.TYPE);
        cub.register(new ByteConverter(), Byte.class);
        cub.register(
            new ByteArrayConverter(byteArray), byteArray.getClass());
        cub.register(new CharacterConverter(), Character.TYPE);
        cub.register(new CharacterConverter(), Character.class);
        cub.register(
            new CharacterArrayConverter(), charArray.getClass());
        cub.register(new DoubleConverter(), Double.TYPE);
View Full Code Here

Examples of org.jboss.ws.core.utils.MimeUtils.ByteArrayConverter

               Class valueType = retValue.getClass();
               if (JavaUtils.isAssignableFrom(javaType, valueType) == false)
               {
                  if (retValue instanceof InputStream)
                  {
                     ByteArrayConverter converter = MimeUtils.getConverterForJavaType(javaType);
                     retValue = converter.readFrom((InputStream)retValue);
                  }
                  else
                  {
                     throw new SOAPException("javaType [" + javaType.getName() + "] is not assignable from attachment content: " + valueType.getName());
                  }
View Full Code Here

Examples of org.jboss.ws.core.utils.MimeUtils.ByteArrayConverter

               Class valueType = retValue.getClass();
               if (JavaUtils.isAssignableFrom(javaType, valueType) == false)
               {
                  if (retValue instanceof InputStream)
                  {
                     ByteArrayConverter converter = MimeUtils.getConverterForJavaType(javaType);
                     retValue = converter.readFrom((InputStream)retValue);
                  }
                  else
                  {
                     throw new SOAPException("javaType [" + javaType.getName() + "] is not assignable from attachment content: " + valueType.getName());
                  }
View Full Code Here

Examples of org.jboss.ws.core.utils.MimeUtils.ByteArrayConverter

               Class valueType = retValue.getClass();
               if (JavaUtils.isAssignableFrom(javaType, valueType) == false)
               {
                  if (retValue instanceof InputStream)
                  {
                     ByteArrayConverter converter = MimeUtils.getConverterForJavaType(javaType);
                     retValue = converter.readFrom((InputStream)retValue);
                  }
                  else
                  {
                     throw new SOAPException("javaType [" + javaType.getName() + "] is not assignable from attachment content: " + valueType.getName());
                  }
View Full Code Here

Examples of org.projectforge.xml.stream.converter.ByteArrayConverter

    internalRegisterConverter(Long.class, conv);
    internalRegisterConverter(long.class, conv);
    conv = new ShortConverter();
    internalRegisterConverter(Short.class, conv);
    internalRegisterConverter(short.class, conv);
    internalRegisterConverter(byte[].class, new ByteArrayConverter());

    internalRegisterConverter(BigDecimal.class, new BigDecimalConverter());
    internalRegisterConverter(Class.class, new ClassConverter());
    internalRegisterConverter(Date.class, new DateConverter());
    internalRegisterConverter(String.class, new StringConverter());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.