As jlibEPS, graphics2D can be used to create an SVG exporter that read each event of the graphics to create the corresponding SVG element.