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 .