Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Memory Analyzer (MAT) » Saving content of char[]/byte[]/String/StringBuffer to file
Saving content of char[]/byte[]/String/StringBuffer to file [message #4412] Wed, 03 September 2008 19:18 Go to next message
Taras Tielkes is currently offline Taras Tielkes
Messages: 38
Registered: July 2009
Member
Here's a feature request.

When I'm looking at a large/huge char[] in the snapshot, I'd like to
save the contents to a file.

-tt
Re: Saving content of char[]/byte[]/String/StringBuffer to file [message #4482 is a reply to message #4412] Wed, 03 September 2008 20:39 Go to previous messageGo to next message
Andreas Buchen is currently offline Andreas Buchen
Messages: 113
Registered: July 2009
Senior Member
> When I'm looking at a large/huge char[] in the snapshot, I'd like to
> save the contents to a file.

:-) Believe it or not, just today I was working on this feature... I will
commit it to the repository tomorrow. Can I win you over to do some beta
testing? I could provide you with a newly build version.
Re: Saving content of char[]/byte[]/String/StringBuffer to file [message #4550 is a reply to message #4482] Wed, 03 September 2008 20:47 Go to previous messageGo to next message
Taras Tielkes is currently offline Taras Tielkes
Messages: 38
Registered: July 2009
Member
Hi Andreas,

I'd say: "Can *I* win *you* over to do some beta testing" :)
My only request is to download a packaged release from somewhere, since
I don't have the time/patience to build myself.

Cheers,
-tt

Andreas Buchen wrote:
>> When I'm looking at a large/huge char[] in the snapshot, I'd like to
>> save the contents to a file.
>
> :-) Believe it or not, just today I was working on this feature... I
> will commit it to the repository tomorrow. Can I win you over to do some
> beta testing? I could provide you with a newly build version.
>
Re: Saving content of char[]/byte[]/String/StringBuffer to file [message #5819 is a reply to message #4482] Tue, 21 October 2008 16:48 Go to previous messageGo to next message
John Amos is currently offline John Amos
Messages: 1
Registered: July 2009
Junior Member
I'm also trying to find a way to save a large byte[] to a file so that I
can examine the contents. Was this feature committed? I don't see a way
to do it in version 0.7.0.200810081028.
Re: Saving content of char[]/byte[]/String/StringBuffer to file [message #5841 is a reply to message #5819] Wed, 22 October 2008 16:23 Go to previous message
Andreas Buchen is currently offline Andreas Buchen
Messages: 113
Registered: July 2009
Senior Member
Hi John, you are right. I added the functionality to export character
based objects, i.e. char[], Strings, StringBuffer, etc. The value is
written into a text file. If you select multiple objects, the content of
all of them is written into the file.

But I now realize that we also need something else: exporting primitive
arrays into a binary file in such a way that they can be read using
java.io.DataInputStream. Currently that is not possible.

If you are interested, add yourself to Bug 249654 which is tracking this
feature request.

Andreas.
Previous Topic:Interned strings compete in the PermGen space.......
Next Topic:Help understanding Heap Analysis
Goto Forum:
  


Current Time: Tue Sep 30 10:21:11 GMT 2014

Powered by FUDForum. Page generated in 0.02356 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software