public final void writeTo(String path) throws IOException {
        final int i = path.lastIndexOf(DOT);
        if (i < 0 || i + 1 == path.length())
            throw new IOException("Cannot find suffix in provided path: " + path);
        final String fmt = path.substring(i + 1);
        writeTo(fmt, path);
    }
public final void writeTo ( String path ) throws IOException { final int i = path . lastIndexOf ( DOT ) ; if ( i < 0 || i + 1 == path . length ( ) ) throw new IOException ( "Cannot find suffix in provided path: " + path ) ; final String fmt = path . substring ( i + 1 ) ; writeTo ( fmt , path ) ; }
Write the depiction to the provided file path, the format is determined
by the path suffix.

@param path output destination path
@throws IOException depiction could not be written, low level IO problem
@see #listFormats()