Simple Encrypter and Decrypter Class I am posting a simple Enc and Dec class, which i was googling for a long time but didnt find. Hope this will help some one. import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; public class EncrypterDecrypter { private static final String UNICODE_FORMAT = "UTF8"; public String encry... 28 Mar 2010 21:10
[ANN] RefleX 0.4.0 released Hi, The RefleX free engine is available for download at: http://reflex.gforge.inria.fr/running.html#download (source code is available too) RefleX is a kind of XML fa�ade in front of a bunch of Java tools. In RefleX, batch scripts and Web applications are written with few XML tags + XPath. You can start w... 24 Mar 2010 04:23
JNI get exception object class name Hi, I have written an application in which i am calling java method from C+ + using JNI(Java Native Interface). I would like to handle exceptions in C++ raised inside JAVA method. I am able to do that successfully. I also want class name of the exception object in C++ and for that I have written following code, ... 26 Mar 2010 00:18
Are there any tools which generates Java code to reading XMLfiles? On 23-03-2010 19:14, Robbo wrote: I use SAXParserFactory to read data from XML files. Lets see some sample XML: <cyclogram> <number>1</number> <step> <number>11</number> </step> </cyclogram> <cyclogram> <number>1</number> <step> <numb... 25 Mar 2010 23:10
Are there any tools which generates Java code to reading XML files? Hello, I use SAXParserFactory to read data from XML files. Lets see some sample XML: <cyclogram> <number>1</number> <step> <number>11</number> </step> </cyclogram> <cyclogram> <number>1</number> <step> <number>11</number> </step> </cyclogram> Since "number"... 24 Mar 2010 18:08
How to reset Graphics2D HI I use the following code to print some barcode which is rotated 90 degrees down the left side of a page which prints in landscape: g2d.translate(haX + intBarCodeHeight, 0); g2d.rotate(90.0 * Math.PI / 180.0); // convert radians, which are about 57 degrees, to degrees ... 3 Apr 2010 13:42
Transactional cache with web application (JBoss Cache?) Hi everyone, I'd like to use a transactional cache on a data source which is not a database. I'll probably have to write some sort of adapter to retrieve records. In a web application, I'd like to use the transaction capability of the caching system. When a page is requested, I'd like for all beans to be ... 23 Mar 2010 11:16
Using enums to avoid using switch/if On Mon, 08 Jun 2009 23:55:08 -0400, Lew <noone(a)lewscanon.com> wrote, quoted or indirectly quoted someone who said : I need a mechanism to map string to enum. see the built-in valueOf function. I often override it to make it case insensitive and allow aliases. See http://mindprod.com/jgloss/enum.html -- ... 25 Mar 2010 07:57
InetAddress.isReachable InetAddress.isReachable always returns false. I am puzzled why. My router is set to pass UDP port 7 through. I can ping google.ca. -- Roedy Green Canadian Mind Products http://mindprod.com Responsible Development is the style of development I aspire to now. It can be summarized by answering the question, �H... 27 Mar 2010 16:31
need suggestion for HTML Renderer for java Hi, I already tried several alternatives. - JDIC : doesn't work - webrenderer : too expensive - lobo : not compatible enough I heared of something like "JWebPane" which should be part of java se 7. Does anyone know about this ? Or any other suggestions ? Best Regards Thorsten ... 23 Mar 2010 10:05 |