BufferedReader vs NIO Buffer Hi, Could someone pls tell me why is the NIO buffering faster than the IO BufferedReader class. I agree NIO uses FileChannels to access the file. But it in turn uses the FileInputStream. Example 1: BufferedReader BufferedReader reader = new BufferedReader(new FileInputStream("File.txt")); reader.read(..... 1 Apr 2010 09:01
byte array How do I actually write hex bytes into a byte array? The obvious method gives me an error ie myArray[0] = 0xc9; -- Dirk http://www.transcendence.me.uk/ - Transcendence UK http://www.blogtalkradio.com/onetribe - Occult Talk Show ... 29 Mar 2010 22:30
Writing jnlp program for both sandbox and all-permissions I've been writing an application to run under jnlp/Java Web Start, and have mostly been making do with the restrictions of running under a sandbox. Some users might want the safer "sandbox" version but others might want more features that require allpermissions. Is there a way for the application to detect wh... 28 Mar 2010 18:58
Buttons sometimes don't get events Hello, I have strange problem. There is split pane in my application. I added my own event listeners to both touch buttons -- after that there are oryginal listeners which do all work and my listeners which enable or distable left button. The purpose of my code was to be possible to show/hide bottom panel and... 29 Mar 2010 19:12
gcj compiled executable performance Hey. I have never earlier tested gcj as I thought it was obsolete in its Java language support. But now I tested it with one of my apps, and here is the result. The application is a command line app, which processes files as input, and produces one file as output. No GUI. I did not compile from source, ... 4 Apr 2010 15:56
VDC is Interested in Your Engineering Experiences VDC is conducting its annual survey of mobile and embedded engineers so if you are involved in the engineering of mobile or embedded systems/software, this is your chance to influence key solution suppliers. The research covers embedded software, hardware, tools, and development practices. Your thoughts will imp... 26 Mar 2010 16:43
export data from jtable to Excel 2007 I export the data from JTable to the Excel file and set some colors for the cells. All works fine except the Excel 2007. The data is exported, but colors are not. Can somebody help? There is the code of setting the color: style.setFillPattern(HSSFColor.LIGHT_YELLOW.index); style.setFillBackgroundColor(HSSFColor.... 30 Mar 2010 07:12
axis attachment apache temp directory solaris being deleted Hi Can someone explain how files are handled by Tomcat when downloaded to the temp directory ? I'm running apache 5.5.23 I notice the file disappears after a while! Is there some time limit after which the file is deleted? Funny when I google this everyone else seems to be concerned with how to delete ... 26 Mar 2010 11:56
using path hint in javax.jnlp's openFileDialog Some months ago people here advised me to use Java Web Start (jnlp) to develop something, and I'm finally getting time to begin investigating how to use the javax.jnlp package. I've just implemented the action for opening a file using the openFileDialog of the file opening service, and selecting a file and re... 27 Mar 2010 10:50
How should I re-write this? Hello, consider the following program: package action; public class MyTest { public static void main(String[] args) { try { ClassLoader cl = MyTest.class.getClassLoader(); Class<?> c = cl.loadClass("action.SomeClass"); SomeClass inst = (SomeClass)c.newInstance(); ... 26 Mar 2010 20:25 |