I\'m using an ObjectInputStream to call readObject for reading in serialized Objects. I would like to avoid having this method block,
ObjectInputStream
readObject
Objects
No. Although you could use the ObjectInputStream in another thread and check to see whether that has an object available. Generally polling isn't a great idea, particularly with the poor guarantees of InputStream.available.
InputStream.available