struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [OT] how to calculate the size of an object
Date Thu, 08 Jul 2004 16:09:39 GMT

The first one looks promising. 


Navjot Singh <> 
07/08/2004 11:57 AM
Please respond to
"Struts Users Mailing List" <>

Struts Users Mailing List <>

[OT] how to calculate the size of an object


I use SAX parser to load an LDIF file into memory. Whatsoever data i 
read, i fill into an object.

I need to know *the size of LDIFData object* at runtime. How to do that?

Well the class structure is something like this

public class LDIFData{
                 ArrayList cards; // collection of Card
                 String filename;
                 long lastLoadedTime;

public class Card{
                 String name;
                 String email
                 String mobile;

Navjot Singh

When you jump for joy, beware that no-one moves the ground from beneath
your feet. -- Stanislaw Lem, "Unkempt Thoughts"

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message