open two different socket input stream
<p>I have a server and a client.  The server receives two command strings: <code>add</code> or <code>remove</code>. If server receives <code>add</code>, it adds the object it receives from the socket to a local list.  Is it acceptable to open two different streams consecutively to receive two different objects?</p>

<p>Example:</p>

<pre><code>/* To read the command */
BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
/* To read the object */
ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
</code></pre>
