Class PolyshapeReader

    • Method Detail

      • getFormatName

        public java.lang.String getFormatName()
        Specified by:
        getFormatName in interface ShapeIO
        Returns:
        the format name
      • read

        public Shape read​(java.lang.Object value)
                   throws java.io.IOException,
                          java.text.ParseException,
                          InvalidShapeException
        Specified by:
        read in interface ShapeReader
        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
      • read

        public final Shape read​(java.io.Reader r)
                         throws java.text.ParseException,
                                java.io.IOException
        Description copied from interface: ShapeReader
        Read a Shape from the reader.
        Specified by:
        read in interface ShapeReader
        Parameters:
        r - -- the input. Note, it will not be closed by this function
        Returns:
        a valid Shape (never null)
        Throws:
        java.text.ParseException
        java.io.IOException