Code example for ObjectOutputStream

Methods: closewriteObject

0
				Log.d("client", "Cert file deleted:" + deleted);
			} 
			 
	      FileOutputStream output = context.openFileOutput("keypair", Context.MODE_PRIVATE);
 
	      ObjectOutput out = new ObjectOutputStream(output); 
	      out.writeObject(keypair); 
	      out.close(); 
	  
	      // Get the bytes of the serialized object  
	  
	      return true;  
	    } catch(IOException ioe) { 
	      Log.e("serializeObject", "error", ioe); 
	 
	      return false;  
	    } 		 
	} 
	 
	public static KeyPair deserializeKeypair(Context context) {
Connect your IDE to all the code out there  Get Codota for Java