static < T > void writes ( final Collection < ? extends T > elements , final Writer < ? super T > writer , final DataOutput out ) throws IOException { writeInt ( elements . size ( ) , out ) ; for ( T element : elements ) { writer . write ( element , out ) ; } }
Write the given elements to the data output .