title: Java serialization, ObjectInputStream.readObject(), check if will block
body: <p>I'm using an <code>ObjectInputStream</code> to call <code>readObject</code> for reading in serialized <code>Objects</code>. I would like to avoid having this method block, so I'm looking to use something like <code>Inputstream.available()</code>.</p>
  
  <p><code>InputStream.available()</code> will tell you there are bytes available and that <code>read()</code> will not block. Is there an equivalent method for seriailzation that will tell you if there are <code>Object</code>s available and <code>readObject</code> will not block?</p>