Re: Looking for normal to reverse domain name conversion

2015-06-28 Thread James Carman
StringUtils.join(ArrayUtils.reverse(domain.split('.')), '.') On Sat, Jun 27, 2015 at 5:33 PM Gary Gregory wrote: > Hi all, > > Do we have in Commons a util method that converts a domain name ( > foo.example.com) into its reverse (com.example.foo)? > > TY, > GG > > -- > E-Mail: garydgreg...@gmail

Re: Looking for normal to reverse domain name conversion

2015-06-28 Thread Benedikt Ritter
Hi Gary, none that I'm aware of. Would fit into either [net] or [lang] IMHO. For example: ClassUtils.domainToPackageName(String) ?! Benedikt 2015-06-27 23:33 GMT+02:00 Gary Gregory : > Hi all, > > Do we have in Commons a util method that converts a domain name ( > foo.example.com) into its reve

Looking for normal to reverse domain name conversion

2015-06-27 Thread Gary Gregory
Hi all, Do we have in Commons a util method that converts a domain name ( foo.example.com) into its reverse (com.example.foo)? TY, GG -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition JUnit in Action, Second