public void exportPreferences(SharedPreferences preferences,DataOutputStream outWriter) throws IOException {
  Map<String,?> values=preferences.getAll();
  for (  String name : doNotBackup) {
    values.remove(name);
  }
  outWriter.writeInt(values.size());
  for (  Map.Entry<String,?> entry : values.entrySet()) {
    writePreference(entry.getKey(),entry.getValue(),outWriter);
  }
  outWriter.flush();
}

public void exportPreferences ( SharedPreferences preferences , DataOutputStream outWriter ) throws IOException { Map < String , ? > values = preferences . getAll ( ) ; for ( String name : doNotBackup ) { values . remove ( name ) ; } outWriter . writeInt ( values . size ( ) ) ; for ( Map . Entry < String , ? > entry : values . entrySet ( ) ) { writePreference ( entry . getKey ( ) , entry . getValue ( ) , outWriter ) ; } outWriter . flush ( ) ; }
exports all shared preferences from the given object into the given output stream .
