Code example for SSLSocket

Methods: getOutputStream

0
     * because this was causing problems before. 
     * @param o 
     * @throws IOException 
     */ 
    public void sendObject(Object o) throws IOException {
        objOut = new ObjectOutputStream(sock.getOutputStream());
        objOut.writeObject(o);
        objOut.flush();
    } 
 
    public String getStringMessage() throws IOException {
        return in.readLine();
    } 
     
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE