While Deserializing the the Objects I want to know how many bytes have been read by the ObjectInputStream from the ByteArrayInputStream or any other Stream.
That is How many bytes have been read by the ObjectInputStream() when , the readObject() method has been called?
First read the Object from the ObjectInputStream, then pass that Object to the Seperate ObjectOutputStream.writeObject() which is Decorated over the ByteArrayOutputStream()....Now you can read the size of the ByteArrayOutputStream() to know the size of that particular Object. But this is not good as you see from a developer point of view in terms of efficiency and coding style.
How about before you read it with method available() - Returns the number of bytes that can be read without blocking. [ May 11, 2006: Message edited by: Carl Trusiak ]
Carl politely closed all the duplicate copies of this thread you posted; I, being less nice, just followed behind and deleted them all. Please read this and please don't do it again. [ May 11, 2006: Message edited by: Ernest Friedman-Hill ]
Originally posted by Ernest Friedman-Hill: Carl politely closed all the duplicate copies of this thread you posted; I, being less nice, just followed behind and deleted them all. Please read this and please don't do it again.
[ May 11, 2006: Message edited by: Ernest Friedman-Hill ]
I am sorry. I will not repeat it again. actually I dont know.