E
electric sheep
Hi, i'm just curious, is there some way to determine the "most specific"
type of an Object type ?
For example, the URL's getContent() method returns an Object.
Is there a way to "query" that object, and find out if it is a String,
or an Image, or whatever ?
I'd like to do something like:
String foo = (String) my_url.getContent();
But I want to make sure I have a String, and not an Image.
cheers,
e
type of an Object type ?
For example, the URL's getContent() method returns an Object.
Is there a way to "query" that object, and find out if it is a String,
or an Image, or whatever ?
I'd like to do something like:
String foo = (String) my_url.getContent();
But I want to make sure I have a String, and not an Image.
cheers,
e