You can use StringTokenizer, and then parse the tokens to integer and
perform the shift operations on them.
I don't think that the Jakarta's commons package has (or needs to provide)
any tool for this.

I think this should be a simple solution.

Regards.
Rommel Sharma.

----- Original Message ----- 
From: "Guy Katz" <[EMAIL PROTECTED]>
To: "'Jakarta Commons Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, August 11, 2004 3:30 PM
Subject: RE: [off topic] IP String to Integer function?


> hi;
> i am looking for something that breaks the IP string  to its 4 pieces and
> uses logical shifts << to create the integer.
> i thought there is a standard for this.
>
> -----Original Message-----
> From: Rommel Sharma [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 11, 2004 11:00 AM
> To: Jakarta Commons Users List
> Subject: Re: [off topic] IP String to Integer function?
>
>
>
> Hi,
> What is the exact requirement? Resolve the hostname to the numeric IP
> Address? Or to convert the numeric IP address to some integer, and on what
> basis?
> Regards,
> Rommel Sharma.
>
> ----- Original Message ----- 
> From: "Guy Katz" <[EMAIL PROTECTED]>
> To: "'Jakarta Commons Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, August 11, 2004 3:13 PM
> Subject: [off topic] IP String to Integer function?
>
>
> > hi all;
> > i am looking for a function shich converts an IP string
(xxx.xxx.xxx.xxx)
> to
> > an Integer.
> > is there such a function available somewhere?
> > thanks,
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> *********************************************************
> Disclaimer:
>
> This message (including any attachments) contains
> confidential information intended for a specific
> individual and purpose, and is protected by law.
> If you are not the intended recipient, you should
> delete this message and are hereby notified that
> any disclosure, copying, or distribution of this
> message, or the taking of any action based on it,
> is strictly prohibited.
>
> *********************************************************
> Visit us at http://www.mahindrabt.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


*********************************************************
Disclaimer:          

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to