Class PointConverter

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

    public class PointConverter
    extends AbstractConverter
    XStream serializer for Point.
    • Constructor Detail

      • PointConverter

        public PointConverter()
    • 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 Point unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                               com.thoughtworks.xstream.converters.UnmarshallingContext context)
      • marshal

        public static void marshal​(Point point,
                                   com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                                   com.thoughtworks.xstream.converters.MarshallingContext context,
                                   com.thoughtworks.xstream.mapper.Mapper mapper)
        Marshal a Point (without the containing element).
      • unmarshal

        public static Point unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                      com.thoughtworks.xstream.converters.UnmarshallingContext context,
                                      com.thoughtworks.xstream.mapper.Mapper mapper)
        Unmarshal a Point.