Class WKTWriter

    • Constructor Summary

      Constructors 
      Constructor Description
      WKTWriter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.StringBuilder append​(java.lang.StringBuilder buffer, Point p, java.text.NumberFormat nf)  
      java.lang.String getFormatName()  
      protected java.text.NumberFormat getNumberFormat()  
      java.lang.String toString​(Shape shape)
      Write a shape to String
      void write​(java.io.Writer output, Shape shape)
      Write a shape to the output writer
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WKTWriter

        public WKTWriter()
    • Method Detail

      • getFormatName

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

        protected java.lang.StringBuilder append​(java.lang.StringBuilder buffer,
                                                 Point p,
                                                 java.text.NumberFormat nf)
      • getNumberFormat

        protected java.text.NumberFormat getNumberFormat()
      • toString

        public java.lang.String toString​(Shape shape)
        Description copied from interface: ShapeWriter
        Write a shape to String
        Specified by:
        toString in interface ShapeWriter
      • write

        public void write​(java.io.Writer output,
                          Shape shape)
                   throws java.io.IOException
        Description copied from interface: ShapeWriter
        Write a shape to the output writer
        Specified by:
        write in interface ShapeWriter
        Throws:
        java.io.IOException