>> The following paragraph of that part states that I already have the
>> mime body part thing down.
[quoted text clipped - 15 lines]
> Have you tried printing the Enumeration to System.out, to see if there's
> actually anything in there? It could be it's just full of null objects.
I'm using Netbeans 4.1 to debug the project (free and not bad for an IDE)
The local variables window indicates there are 21 Vector elements to the
InternetHeaders object that I create
InternetHeaders hedr = new InternetHeaders();
> Btw note that InternetHeaders:getAllHeaders() returns an Enumeration of
> Header objects, NOT an Enumeration of Strings. You may do better with
> InternetHeaders:getAllHeaderLines();
original code....
Enumeration henum = hedr.getAllHeaderLines();
I've tried to cast that puppy too. no luck.
> In either case I'd suggest trying to narrow down the problem by using lots
> and lots of System.out.print statements (or use an IDE's debugger) to
> check
> the contents of every object at every stage in the program's execution.
I'm using breakpoints in the netbeans ide. Works pretty slick.
I've also been able to use Oracles JDeveloper to debug as well, but it's a
bit more of a pig on system resources. Same issue.
> PS I use the ClassName:methodName() notation to show that it's not a
> static
> method.
zero - 18 Nov 2005 22:24 GMT
> The local variables window indicates there are 21 Vector elements to
> the InternetHeaders object that I create
what about the Enumeration? Does it have any objects, and are they not
null?