public static void saveAsBinary(NSObject root,File out) throws IOException {
  File parent=out.getParentFile();
  if (!parent.exists() && !parent.mkdirs()) {
    throw new IOException("The output directory does not exist and could not be created.");
  }
  BinaryPropertyListWriter.write(out,root);
}

public static void saveAsBinary ( NSObject root , File out ) throws IOException { File parent = out . getParentFile ( ) ; if ( ! parent . exists ( ) && ! parent . mkdirs ( ) ) { throw new IOException ( "The output directory does not exist and could not be created." ) ; } BinaryPropertyListWriter . write ( out , root ) ; }
saves a property list with the given object as root into a binary file .
