I have this input stream from socket and I want to check if the input stream that I just read is an string, int, image etc...
Currently I am using DataInputStream..
Is there a way to check the type through byte or something else??
I have this input stream from socket and I want to check if the input stream that I just read is an string, int, image etc...
Currently I am using DataInputStream..
Is there a way to check the type through byte or something else??
Not unless you prepend each data item with a type tag.