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

Class SVGZOutputFormat

    • Constructor Detail

      • SVGZOutputFormat

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

      • getFileExtension

        public java.lang.String getFileExtension()
        Description copied from interface: OutputFormat
        Returns the file extension for the output format. The file extension should be appended to a file name when storing a Drawing with the specified file format.
        Specified by:
        getFileExtension in interface OutputFormat
        Overrides:
        getFileExtension in class SVGOutputFormat
      • getFileFilter

        public javax.swing.filechooser.FileFilter getFileFilter()
        Description copied from interface: OutputFormat
        Return a FileFilter that can be used to identify files which can be stored with this output format. Typically, each output format has its own recognizable file extension.
        Specified by:
        getFileFilter in interface OutputFormat
        Overrides:
        getFileFilter in class SVGOutputFormat
        Returns:
        FileFilter to be used with a javax.swing.JFileChooser
      • write

        public void write(java.io.OutputStream out,
                          Drawing drawing)
                   throws java.io.IOException
        Description copied from interface: OutputFormat
        Writes a Drawing into an output stream.
        Specified by:
        write in interface OutputFormat
        Overrides:
        write in class SVGOutputFormat
        Parameters:
        out - The output stream.
        drawing - The drawing.
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.