public void writeLinkedKml(final String filename,final KmlType kml){
  if (filename.equals("doc.kml")) {
    throw new IllegalArgumentException("The filename 'doc.kml' is reserved for the primary kml.");
  }
  if (filename.equals("main.kml")) {
    throw new IllegalArgumentException("The filename 'main.kml' is reserved for the main kml.");
  }
  writeKml(filename,kml);
}

public void writeLinkedKml ( final String filename , final KmlType kml ) { if ( filename . equals ( "doc.kml" ) ) { throw new IllegalArgumentException ( "The filename 'doc.kml' is reserved for the primary kml." ) ; } if ( filename . equals ( "main.kml" ) ) { throw new IllegalArgumentException ( "The filename 'main.kml' is reserved for the main kml." ) ; } writeKml ( filename , kml ) ; }
adds the specified kml - object to the file .
