code: private void  parseAttributesPolyLine(SVG.PolyLine obj, Attributes attributes, String tag) throws SVGParseException
     {
        for (int i=0; i<attributes.getLength(); i++)
        {
           if (SVGAttr.fromString(attributes.getLocalName(i)) == SVGAttr.points)
           {
              TextScanner scan = new TextScanner(attributes.getValue(i));
              List<Float> points = new ArrayList<>();
              scan.skipWhitespace();
  
              while (!scan.empty()) {
                 float x = scan.nextFloat();
                 if (Float.isNaN(x))
                    throw new SVGParseException("Invalid <"+tag+"> points attribute. Non-coordinate content found in list.");
                 scan.skipCommaWhitespace();
                 float y = scan.nextFloat();
                 if (Float.isNaN(y))
                    throw new SVGParseException("Invalid <"+tag+"> points attribute. There should be an even number of coordinates.");
                 scan.skipCommaWhitespace();
                 points.add(x);
                 points.add(y);
              }
              obj.points = new float[points.size()];
              int j = 0;
              for (float f: points) {
                 obj.points[j++] = f;
              }
           }
        }
     }
docs: /*
  Parse the "points" attribute. Used by both <polyline> and <polygon>.