I'm new to Java and I want to implement a buffer of byte[] which one thread can write into, and another thread can read from.
It sounds like it should have already been implemented in java, but I spent hours trying to find/understand several number of classes, and I didn't understand if it does what I want, and how to use it.
I saw BufferedInputStream, ByteBuffer, ByteChannel, BlockingQueue...
Can someone please point to a more specific direction?
I use SDK 1.6