Examples of ArrayWrapper


Examples of com.dyuproject.protostuff.runtime.ObjectSchema.ArrayWrapper

           
            default:
                throw new ProtostuffException("Corrupt input.");
        }
       
        final ArrayWrapper mArrayWrapper = ObjectSchema.newArrayWrapper(input,
                schema, mapped, strategy);
       
        if(input instanceof GraphInput)
        {
            // update the actual reference.
View Full Code Here

Examples of com.liferay.util.lang.ArrayWrapper

public class Serializer {

  public static Object[] readArray(String xml) throws CastorException {
    Reader reader = new StringReader(xml);

    ArrayWrapper aw;
    try {
      aw = (ArrayWrapper)Unmarshaller.unmarshal(ArrayWrapper.class, reader);
    } catch (MarshalException e) {
      Logger.error(Serializer.class, e.getMessage(), e);
      throw new CastorException(e.getMessage());
    } catch (ValidationException e) {
      Logger.error(Serializer.class, e.getMessage(), e);
      throw new CastorException(e.getMessage());
    }
    return aw.getArray();
  }
View Full Code Here

Examples of com.liferay.util.lang.ArrayWrapper

    }
    return aw.getArray();
  }

  public static String writeArray(Object[] array) throws CastorException {
    ArrayWrapper aw = new ArrayWrapper();
    aw.setArray(array);

    Writer writer = new StringWriter();
    try {
      Marshaller.marshal(aw, writer);
    } catch (MarshalException e) {
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.