Pin the buffer on the output chain Greets yalls, Given: OutputStream out; // this is not buffered Which is better: Writer w = new BufferedWriter(new OutputStreamWriter(out)); Writer w = new OutputStreamWriter(new BufferedOutputStream(out)); ? I suppose i'm wondering about (a) whether encoding characters to bytes is more efficient in... 21 Feb 2010 14:51
Don't know how to create a project correctly. I'm trying to learn fuzzyJ and have some instructions I'm following to create a project. To create the project I had to select and interpreter and have no instruction how to. I searched and found python.exe and selected that. That could be what I did wrong because it was only a guess! The tab in the exam... 20 Feb 2010 22:25
XMLmind MultipartRequest olivier wrote: XMLmind MultipartRequest is a JavaTM 1.4+ class library allowing pre-3.0 Servlets to parse multipart/form-data requests by emulating the facilities found in the Servlet 3.0 standard. (More info. Please do not post using HTML; plain text is more appropriate for newsgroups. There ha... 19 Feb 2010 15:29
Graphics2D in a DefaultStyleDocument Hi I currently use a lot of code to parse and print a multi-page document with a lot of Graphics2D objects. I need to display the same document in a JTextPane. I would like to create a new class that could be used by either the repaginate() and print() routines for the print job or by a new paint() routine for the... 22 Feb 2010 18:40
[ANN] XMLmind MultipartRequest XMLmind MultipartRequest <http://www.xmlmind.com/multipartreq.shtml> is a JavaTM 1.4+ class library allowing pre-3.0 Servlets to parse multipart/form-data requests by emulating the facilities found in the Servlet 3.0 standard. (More info. <http://www.xmlmind.com/_multipartreq/doc/index.html>) ... 19 Feb 2010 06:32
Private methods can't be overridden? I heard today that in Java you cannot override private methods. I'm wondering about this snippet: class Printer { public void print() { preparePrint(); doPrint(); finalizePrint(); } private abstract void doPrint(); }; class LaserPrinter extends Printer { private void doPrint() { ... 19 Feb 2010 14:22
Can I install new JavaRuntime version on top of previous? Automatic (CLASS)PATH change? Can I install a new JRE on top of an existing JRE (in the same directory) on WinXP? Or do I have to uninstall the old JRE first? More important: Does the new JRE installation process change the PATH and CLASSPATH environment variables e.g. put the new PATH BEFORE all existing values? Ray ... 18 Feb 2010 03:57
Is this GC.log summary indicating memory leak ? Hi All, I am trying to find out whether our app is experiencing memory leak by doing verbose gc on 4 days , here is the summary : (the detail is too long too attached) I use 2 JVMs with thi setting : -ms3072M -mx3072M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC - XX:MaxPermSize=1024M From the output below, i... 20 Feb 2010 21:19
Design issue in swing application Hello, in my program I toggle between two panels depending on which phase the program is currently in. I wrote a class that functions as the entry point of the program and it's composed of a JFrame along with the components of that frame. Now I wanted to break out my two panels to make the code more readable so... 18 Feb 2010 06:07
Noted Speakers, Workshops and lots more at Sun Tech Days 2010 Conference Simon Ritter, Peter Karlsson, Arun Gupta, Philip Torchinsky, Chuk-Munn Lee, Terrence Barr and lost more are going to speak at the Sun Tech Days 2010 Conference in Hyderabad, India from March 24-25, 2010. Not everyday do you get a chance to interact with such noted experts. Besides this, Java developers can also att... 17 Feb 2010 02:12 |