DefaultSvgDocument extends AbstractGraphicsDocument { public void writePathContent(Coordinate[] coords) throws RenderException { writePathContent(coords, 'M', 'l'); } DefaultSvgDocument(Writer writer);  DefaultSvgDocument(Writer writer, boolean withSvgTag); void writeClosedPathContent(Coordinate[] coords); void writePathContent(Coordinate[] coords);  }
@Test public void writePathContent() throws Exception { StringWriter writer = new StringWriter(); GraphicsDocument document = new DefaultSvgDocument(writer, false); document.writeElement("path", false); document.writeAttributeStart("points"); Coordinate[] coordinates = new Coordinate[2]; coordinates[0] = new Coordinate(1.23456789, 9.87654321); coordinates[1] = new Coordinate(9.876, 1.234); document.writePathContent(coordinates); document.writeAttributeEnd(); document.closeElement(); Assert.assertEquals("<path points=\"M1.23457 9.87654l8.64143 -8.64254 \"/>", writer.getBuffer().toString()); }