Documentation of 'org.jhotdraw.samples.svg.io.SVGZInputFormat' Java class
SVGZInputFormat
org.jhotdraw.samples.svg.io

Class SVGZInputFormat

  • All Implemented Interfaces:
    InputFormat


    public class SVGZInputFormat
    extends SVGInputFormat
    SVGZInputFormat supports reading of uncompressed and compressed SVG images.
    • Constructor Detail

      • SVGZInputFormat

        public SVGZInputFormat()
        Creates a new instance.
    • Method Detail

      • getFileFilter

        public javax.swing.filechooser.FileFilter getFileFilter()
        Description copied from interface: InputFormat
        Return a FileFilter that can be used to identify files which can be read with this input format. Typically, each input format has its own recognizable file naming convention.
        Specified by:
        getFileFilter in interface InputFormat
        Overrides:
        getFileFilter in class SVGInputFormat
        Returns:
        FileFilter to be used with a javax.swing.JFileChooser
      • read

        public void read(java.io.InputStream in,
                         Drawing drawing,
                         boolean replace)
                  throws java.io.IOException
        Description copied from class: SVGInputFormat
        This is the main reading method.
        Specified by:
        read in interface InputFormat
        Overrides:
        read in class SVGInputFormat
        Parameters:
        in - The input stream.
        drawing - The drawing to which this method adds figures.
        replace - Whether attributes on the drawing object should by changed by this method. Set this to false, when reading individual images from the clipboard.
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.