I've emailed a generic Splitter class to you. Maybe you can include this class and support a Stream#split() method that returns such a class.