i\'m working on a network java code, and i can\'t seem to understand what are the prerequisites an ObjectInputStream needs to interpret bytes.
Here is a part of the code :
Your read() method is broken. It is supposed to return a single byte. You should read the javadoc for InputStream thoroughly if you intend to write your own implementation.