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