Navigation Home / Tags / Java

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

9
Date Submitted Mon. Apr. 3rd, 2006 10:41 AM
Revision 1
Helper jpinkham
Tags debug | Java | toString
Comments 1 comments
Do you find yourself implementing toString on your objects all the time, and wondering why (the debugger seems to do a pretty good job of it all by itself)...well, here's a bit of introspection applied to the problem. This is for all those quick debug sessions where you just want to do System.out.println(myComplexObject).

Instead, just do System.out.println(DebugPrint.toString(myComplexObject));
7
Date Submitted Mon. Apr. 3rd, 2006 10:33 AM
Revision 1
Helper jpinkham
Tags Date | intersect | Interval | Java
Comments 1 comments
A handy class I use all the time to encapsulate the idea of whether two events coincide. For example, given a time period representing a shift, and a list of time periods representing transactions or sessions or whatever, find which ones are either totally or partially within the time period. This class make it a bit easier.
11
Date Submitted Wed. Mar. 29th, 2006 12:04 PM
Revision 1
Coder mattrmiller
Tags Delete | Directory | Java | Recursive | REMOVE
Comments 1 comments
Recursively delete a directory, emptying all contents.
14
Date Submitted Mon. Mar. 20th, 2006 4:52 PM
Revision 1
Coder mattrmiller
Tags Delete | Extension | File | Folder | Java
Comments 0 comments
Deletes all files of a certain extention from a folder.
8
Date Submitted Thu. Mar. 16th, 2006 11:17 PM
Revision 1
Coder mattrmiller
Tags File | Java | Move
Comments 1 comments
Move a file quickly in java.
14
Date Submitted Thu. Mar. 16th, 2006 10:49 PM
Revision 1
Coder mattrmiller
Tags Compression | File | GZIPOutputStream | GZIPOutputStreamEx | Java | Stream
Comments 0 comments
in the normal GZIPOutputStream you can not et the compression level. I came across this little script tonight that allows you to set the compression level for GZIPOutputStream.
11
Date Submitted Thu. Mar. 16th, 2006 10:01 PM
Revision 2
Coder mattrmiller
Tags Bytes | Format | Java | String
Comments 0 comments
Format Bytes
9
Date Submitted Thu. Mar. 16th, 2006 6:44 PM
Revision 1
Helper Snyke
Tags debugging | Java | log4j | logging | Output
Comments 0 comments
Log4J is a really nice Library that aims to facilitate outputting debugging information, but also relevant data, in Java applications. It is highly configurable, using both Categories and Class-Based rules, so that developers can narrow down the problems very well when debugging applications.
9
Date Submitted Thu. Mar. 16th, 2006 3:49 PM
Revision 1
Coder mattrmiller
Tags Clipboard | Cut | Java | Paste
Comments 1 comments
Simple class to allow cut and paste to clipboard.
8
Date Submitted Tue. Mar. 14th, 2006 11:49 PM
Revision 1
Coder mattrmiller
Tags Java | Newline | REMOVE | Replace | String
Comments 4 comments
Remove newslines from a string.