Why don't you just try to Serialize it, and if it is not Serializable, handle the exception?
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Feb 06, 2001
Originally posted by Cindy Glass: Why don't you just try to Serialize it, and if it is not Serializable, handle the exception?
Hi, Thanks for the suggestion . But dont I have to load the class to try and serialize the same ? Here is the use case for me > I have a .class file which can be present in the file system , which I can basically read into an array of bytes . I know the fully qualified name of the class as well . How do I find out if it implements java.io.Serialisable in the easiest manner possible ? Thanks in advance, Anirban
Joined: Sep 29, 2000
Duh - I get it now :roll: . hmmm , the only isSerializable() that I know of is used in the Doclet stuff. Nope - I am just not going to be able to help here.