Top "Objectinputstream" questions

The Java `ObjectInputStream` deserialization class from the Java standard library.

Reading Objects until End of File in java

I'm trying to write a program where the user can: 1) Add a person to the contact (name, phone, email), 2) Remove …

java serialization objectinputstream eofexception
Java Socket Programming

I am building a simple client/server application using java sockets and experimenting with the ObjectOutputStream etc. I have been …

java sockets network-programming objectinputstream
Java ClassNotFoundException when reading object from a stream

I am getting a ClassNotFoundException when reading an Object from an ObjectInputStream. The object that is being sent is subclassing "…

java serialization objectinputstream
java.io.StreamCorruptedException: invalid stream header: 48656C6C

I am using netty client server for communication . The message is received successfully as byte array . When I convert byte …

java bytearray netty objectinputstream
Reading an object via ObjectInputStream throws EOF exception

I am trying to read an object via ObjectInputStream. However I retrieve the following stacktrace with an EOFException: java.io.…

java serialization file-io deserialization objectinputstream
How can I append to an existing java.io.ObjectStream?

As for now I will get java.io.StreamCorruptedException when I try to append an Object. I have searched the …

java serialization append objectinputstream
new ObjectInputStream() blocks

public class SerProg { static ServerSocket ser=null; static Socket cli=null; static ObjectInputStream ins=null; static ObjectOutputStream outs=null; public …

java sockets objectinputstream
ObjectInputStream readObject in while Loop

Is it possible to read from ObjectInputStream in while loop which will terminate by exception thrown by socket timeout socket.…

java compiler-errors objectinputstream
ObjectInputStream happy with FileInputStream, not happy with getResourceAsStream

I have some pretty standard code which takes in a serialized object from a stream, which bascially looks like this: …

java inputstream fileinputstream objectinputstream