Code example for LocalSocket

Methods: getFileDescriptor

0
	FileDescriptor getTargetFileDescriptor()
	{ 
		if(sender == null) {
			throw new IllegalStateException("Cannot return file descriptor as sender is unitialized (Call initLoopback first)");
		} 
		return sender.getFileDescriptor();
	} 
 
	public InputStream getReceiverInputStream() throws IOException {
		return receiver.getInputStream();
	}	 
} 
Connect your IDE to all the code out there  Get Codota for Java