Spark 3754 spark streaming file system api callable from java

This is a WIP of making the filesystem api callable for the Java version of Spark Streaming.
How should I collect it back if I use DStream.count()? The provided utils for doing this in the scala tests didn't seem to match this very well.