Class RectangleConverter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

    public class RectangleConverter
    extends AbstractConverter
    XStream serializer for Rectangle.
    • Constructor Detail

      • RectangleConverter

        public RectangleConverter()
    • Method Detail

      • canConvert

        public boolean canConvert​(java.lang.Class type)
      • marshal

        public void marshal​(java.lang.Object source,
                            com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                            com.thoughtworks.xstream.converters.MarshallingContext context)
      • unmarshal

        public Rectangle unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                   com.thoughtworks.xstream.converters.UnmarshallingContext context)