Code example for LocalSocket

Methods: getOutputStream

0
    public InputStream getInputStream() throws IOException{
       return receiver.getInputStream(); 
    } 
 
    public OutputStream getOutputStream() throws IOException{
       return sender.getOutputStream();
    } 
 
	public void ReleaseLoop() 
	{ 
		try { 
			if ( receiver != null){
				receiver.close();
			} 
			if ( sender != null){
				sender.close();
			} 
		} catch (IOException e1) {
			e1.printStackTrace();
			Log.d(TAG, e1.toString());			
		}