Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / August 2005

Tip: Looking for answers? Try searching our database.

'strings' for unicode in class files?

Thread view: 
Gary Obble - 17 Aug 2005 00:05 GMT
Is there an equivalent to the Unix 'strings' command that will scan for
Unicode strings?   It would be especially nice if it would recognize
java class files and optionally scan only the data area.  

Oh, I did find a Windows binary that scans for Unicode.  The problem is
that I want use OSX.  Well, I can dream, can't I?

Thanks
Gary
Roedy Green - 17 Aug 2005 05:26 GMT
>Is there an equivalent to the Unix 'strings' command that will scan for
>Unicode strings?   It would be especially nice if it would recognize
>java class files and optionally scan only the data area.  

I wrote a little program that scans for import statements in Java
source code.  All you would have to do is change the regex to get it
to find strings.

If you are interested, send me an email with the subject
"findimports".
Gary Obble - 18 Aug 2005 06:04 GMT
I was about to make a wise-a.s remark when I noticed the author of this
reply.  So now I'll just assume I should have highlighted "Unicode", and
emphasized how "strings" is used in different applications than "grep".

Roedy, you are a magnificent treasure of the internet, but you're
overworking yourself to the point of partial blindness.

Gary

> >Is there an equivalent to the Unix 'strings' command that will scan for
> >Unicode strings?   It would be especially nice if it would recognize
[quoted text clipped - 6 lines]
> If you are interested, send me an email with the subject
> "findimports".
Roedy Green - 20 Aug 2005 03:00 GMT
>Roedy, you are a magnificent treasure of the internet, but you're
>overworking yourself to the point of partial blindness.

Screw you on three counts.

1. you did not explain your problem clearly.

2. It is downright rude to look a gift horse in the mouth.

3. You faulted me for your own failing to explain your problem
clearly. In any case, the code I offered is still a framework for
whatever extract logic you need.

Perhaps you should be looking at something that understands class file
format. See http://jakarta.apache.org/bcel/index.html

That is the last help you are getting from me.
Wojtek Bok - 22 Aug 2005 14:57 GMT
>>Roedy, you are a magnificent treasure of the internet, but you're
>>overworking yourself to the point of partial blindness.
>
> Screw you on three counts.

Now, now children, let's all play together here....
Gary Obble - 26 Aug 2005 19:28 GMT
Roedy wrote:

> Screw you on three counts.
>
[quoted text clipped - 7 lines]
> ...
> That is the last help you are getting from me.

Dear John,

I'm sorry I hurt your feelings.   Please don't cry.  Between the lover
who ditched you and my rejection of inappropriate "help", you must be
feeling very sad.  Anger is inappropriate.  Look into yourself for the
problem and the solution.

In this most recent situation,  you didn't read the question before
trying to show off a "solution" that had no bearing on the problem.  The
problem description was complete with "equivalent to Unix 'strings'
command" and "Unicode".  You can't pretend not to know the meaning of
either.  Did you just want someone to love you for some code of which
you were especially proud?  Maybe it's contrary to your gay lifestyle,
but I don't get all mushy for no reason.  I still believe you have
contributed a lot to the internet, but your personality is that of an
arrogant, self-centered, bloody immature twit.

It is a cruel irony that you feel a gift horse should be accepted
without inspection.  If you had looked a certain "gift horse" in the
mouth, or some other orifice, you would not have HIV.  Get the parallel?  
The wrong gift can cost the recipient more than it did the giver.  
Modifying a R.E. scanner to do a 'strings' function would be a
terminally stupid.

I will never post a question for you again.  As a matter of fact, I
forbid you from reading anything I might post for other people.

Love always,
Gary

N.B. the above references to rejection, sexual orientation, and HIV
status are based on the big baby's own public, voluminous, and generally
entertaining web site: http://mindprod.com/
Robert Klemme - 17 Aug 2005 08:54 GMT
> Is there an equivalent to the Unix 'strings' command that will scan
> for Unicode strings?   It would be especially nice if it would
> recognize java class files and optionally scan only the data area.
>
> Oh, I did find a Windows binary that scans for Unicode.  The problem
> is that I want use OSX.  Well, I can dream, can't I?

There's a GNU Java lib that is capable of reading Java byte code.  I guess
you could write something using that.

Kind regards

   robert


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.