style guide on method ordering621 (5/16/2008 2:53:02 PM) comp.lang.java.programmer I generally try to stay as close as possible to standard Java style in my code. But one area I've never seen any guidelines or best practices is with regard to the ordering of methods within a class. This may... Rex
which OutputStreams are buffered?1727 (5/16/2008 2:14:04 PM) comp.lang.java.programmer There is a java.io.BufferedOutputStream whose purpose is well documented, basically as a good thing to wrap around an unbuffered OutputStream (at least if you want buffering). However, and surprisingly to me... Rex
Set and .equals() semantics3217 (5/8/2008 4:00:52 PM) comp.lang.java.programmer I must be missing something involving the lack of a 'get' method for Sets. Briefly, my app maintains a Collection of unique Foo() objects derived by reading and parsing an InputStream. The objects being store... Rex
circular references and ORM515 (5/7/2008 5:09:18 PM) comp.lang.java.programmer I know that "premature optimization is the root of all evil" but OTOH there are situations where you want to think about future needs before putting hands to keyboard .... I'm building a web app which curren... Rex
splitting a CSV line in half1015 (5/7/2008 1:52:55 PM) comp.lang.java.programmer This should be a fairly simple programming task but I just can't find an elegant way to do it. Given a String of (say) 9 comma-separated values: "f1,f2,f3,f4,f5,f6,f7,f8,f9" I need to split it such that the... Rex
servlet annotations for URL mapping?1315 (4/28/2008 2:38:22 PM) comp.lang.java.programmer I've read that the newest Servlet API (2.5) has support for annotations. But I'm having a lot of trouble finding out how to do a simple URL mapping with annotations. Here's what I'm trying to do - take a standa... Rex
best way to suppress "unused" warning?1418 (4/25/2008 1:05:24 AM) comp.lang.c I'm using an API which does a lot of callbacks. In classic callback style, each routine provides a void * pointer to carry user-defined data. Sometimes, however, the user-defined pointer is not needed which ... Rex
how to extend a byte[] array with a null byte?2525 (4/17/2008 5:47:50 PM) comp.lang.java.programmer This should be simple but I'm struggling with it (and am somewhat of a Java newbie). I have a string String foo = "abc"; and need to write it into a database file as a C-style string (meaning a trailin... Rex
offset-based hash table for ASCII data4955 (4/15/2008 12:15:06 PM) comp.unix.programmer I'm looking for an offset-based data structure to hold character data. Background: I'm working with an app whose server is written in Java while the client is in C. The server needs to package up a bunch of d... Rex
Compile differences between Linux and FreeBSD650 (4/23/2008 1:00:14 PM) comp.unix.programmer I have a program that runs fine on FreeBSD but yesterday I transferred it over to a linux box and it failed. (Actually it's a web server on a shared host). What is happening is a run time linker utility is in /... robbelics(41)
servlet annotations for URL mapping?1315 (4/28/2008 2:38:22 PM) comp.lang.java.programmer I've read that the newest Servlet API (2.5) has support for annotations. But I'm having a lot of trouble finding out how to do a simple URL mapping with annotations. Here's what I'm trying to do - take a standa... rexm(52)
file.close() while running2425 (5/4/2008 12:02:43 AM) comp.lang.java.programmer Hi.. I'm currently simulating some physics with a java program. The results is printed to a file line by line. The program takes several hours to run, so I would like to look at the output as soon as it has ... garfieldpbj(9)
splitting a CSV line in half1015 (5/7/2008 1:52:55 PM) comp.lang.java.programmer This should be a fairly simple programming task but I just can't find an elegant way to do it. Given a String of (say) 9 comma-separated values: "f1,f2,f3,f4,f5,f6,f7,f8,f9" I need to split it such that the... rexm(52)
Set and .equals() semantics3217 (5/8/2008 4:00:52 PM) comp.lang.java.programmer I must be missing something involving the lack of a 'get' method for Sets. Briefly, my app maintains a Collection of unique Foo() objects derived by reading and parsing an InputStream. The objects being store... rexm(52)
Data Storage Issue (Basic Issue)2328 (5/9/2008 2:37:29 PM) comp.lang.java.programmer Which is more efficient? Why?? Storing or Reading a file in database or on to disk in a web server environment? considering all things like network, connections, memory are ideal. My knowledge says that using ... Srinihello(14)
dependency scanner2826 (5/11/2008 3:03:34 PM) comp.lang.java.programmer I am looking for a class/program that will scan a .java file for imports (recursively) to discover which ones need to be rebuilt. This is close to GNU's makedepend or cook's c_incl. ... Aryeh.Friedman(91)
which OutputStreams are buffered?1727 (5/16/2008 2:14:04 PM) comp.lang.java.programmer There is a java.io.BufferedOutputStream whose purpose is well documented, basically as a good thing to wrap around an unbuffered OutputStream (at least if you want buffering). However, and surprisingly to me... rexm(52)
style guide on method ordering621 (5/16/2008 2:53:02 PM) comp.lang.java.programmer I generally try to stay as close as possible to standard Java style in my code. But one area I've never seen any guidelines or best practices is with regard to the ordering of methods within a class. This may... rexm(52)