javax.activation.DataSource size question
Posted
by folone
on Stack Overflow
See other posts from Stack Overflow
or by folone
Published on 2010-06-02T11:20:52Z
Indexed on
2010/06/02
11:23 UTC
Read the original article
Hit count: 241
How do I get the amount of physical memory, consumed by the DataSource (specifically — ByteArrayDataSource)? I use ByteArrayDataSource (byte[] bytes, String type) constructor, where I get bytes like this:
String str = "test";
byte[] bytes = str.getBytes();
Would that be str.length() in bytes? Any other ideas?
© Stack Overflow or respective owner