I have two threads running (or plan to have) and want to know if I can connect a virtual pipe between them using InputStream and OutputStream? Is there some stream-like object that I can write to from one thread and then read from the same object from another thread? If not, what is the recommended way of doing this? The data is basically PCM_UNSIGNED 16 bit integers read in from a microphone line.
Thanks in advance.