My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Project Information
Members

Java Utilities.

In every language I've used, I'v found myself rewriting the same set of core utilities. Always, a String Utils, a File Utils, something to handle string trees like XML, a command-line Parser.

There are many libraries to deal with these things. And yet, the ones I find are two levels more abstract than I need.

Take comman-line parsing. Apache Commons CLI consists of dozens of classes, and supports all possible comand-line paradigms, if only you plug in enough stuff. How about this, instead: No choices, and you can learn it and use it in 10 minutes or less, and consists of one class.

Omino Roundabout is a lean and handy set of plain old libraries, with no dependencies. (No Dependencies!!!) Some concern for performance, but much more on clarity. Includes:

  • OmFile -- read a file into a String, if it fails, return null. Easy!
  • OmString -- convert strings to integers and booleans, do basic pattern matching. You'll think you're living in Perl again!
  • OmArgs -- describe your switches, and let it parse. You get GNU-style --option-name=value. You get --help for free. Don't like GNU style? Sorry! This one is easy.
  • Om -- call this instead of System for your printfs. You can reroute standard out for unit testing. Don't call System.exit(0), call Om.sysExit(0) instead. Now, you can call main() from a JUnit test, and see the virtual exit code.
  • OmEventMaven -- a simple-to-use publish/subscribe event distributor with tag-based filtering, and set up time-based behaviors. This is clean and raw, it's not just for GUI's any more. I use it for real-time network operations.

Did I mention? This is a toolkit. This ain't no stinking framework.

Powered by Google Project Hosting