public class SVGOutputStream extends IlvOutputStream
IlvOutputStream
that allows you to save the
contents of an IlvManager
to an XML file using SVG grammar
specifications. This is done in two steps: building a DOM tree with SVG
elements corresponding to Rogue Wave JViews graphic objects and then dumping
the tree to the OutputStream
.SVGStreamFactory
,
SVGDocumentBuilder
Constructor and Description |
---|
SVGOutputStream(OutputStream stream,
SVGStreamFactory factory)
Builds an
SVGOutputStream from an OutputStream
using information found in the given SVGStreamFactory . |
Modifier and Type | Method and Description |
---|---|
void |
write(IlvManager manager)
Writes the contents of the manager to a stream using SVG grammar.
|
filterObjects, flush, getBinary, getManager, setBinary, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeExtensions, writeGradient, writePattern, writeStroke, writeTexture
public SVGOutputStream(OutputStream stream, SVGStreamFactory factory)
SVGOutputStream
from an OutputStream
using information found in the given SVGStreamFactory
.
If the IlvOutputStream.getBinary()
method returns
true
, a GZIPOutputStream
will be used to compress
the OutputStream
.stream
- The output stream.factory
- The SVG stream factory.public void write(IlvManager manager) throws IOException
SVGElement
s translated from the IlvGraphic
of
the IlvManager
, and then writing the document
to the stream as an XML file.write
in class IlvOutputStream
manager
- The manager to save.IOException
- usual IO errors.SVGDocumentBuilder
,
SVGStreamFactory.createSVGDocumentBuilder()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.