Interface ShapeReader

    • Method Detail

      • read

        Shape read​(java.lang.Object value)
            throws java.io.IOException,
                   java.text.ParseException,
                   InvalidShapeException
        Parameters:
        value - -- the input value, could be a String or other object
        Returns:
        a shape valid shape (not null)
        Throws:
        java.io.IOException
        java.text.ParseException
        InvalidShapeException
      • readIfSupported

        Shape readIfSupported​(java.lang.Object value)
                       throws InvalidShapeException
        Parameters:
        value - -- the input value, could be a String or other object
        Returns:
        a shape or null, if the input was un readable. This will throw InvalidShapeException when we could read a shape, but it was invalid
        Throws:
        InvalidShapeException
      • read

        Shape read​(java.io.Reader reader)
            throws java.io.IOException,
                   java.text.ParseException,
                   InvalidShapeException
        Read a Shape from the reader.
        Parameters:
        reader - -- the input. Note, it will not be closed by this function
        Returns:
        a valid Shape (never null)
        Throws:
        java.io.IOException
        java.text.ParseException
        InvalidShapeException