question: public static void writeSplitsFile ( final Collection < Text > splits , final FileSystem fs , final Path splitsFile ) throws IOException { try ( final PrintStream out = new PrintStream ( new BufferedOutputStream ( fs . create ( splitsFile , true ) ) , false , CommonConstants . UTF_8 ) ) { for ( final Text split : splits ) { out . println ( new String ( Base64 . encodeBase64 ( split . getBytes ( ) ) , CommonConstants . UTF_8 ) ) ; } } }
target:  Given some split points, write a Base64 encoded splits file <p>