@SuppressWarnings("unchecked")
	public void addWriter(RecordWriter<Record> writer)
	{
		// avoid using the array-list here to reduce one level of object indirection
		if (this.writers == null) {
			this.writers = new RecordWriter[] {writer};
		}
		else {
			RecordWriter<Record>[] ws = new RecordWriter[this.writers.length + 1];
			System.arraycopy(this.writers, 0, ws, 0, this.writers.length);
			ws[this.writers.length] = writer;
			this.writers = ws;
		}
	}
@ SuppressWarnings ( "unchecked" ) public void addWriter ( RecordWriter < Record > writer ) { if ( this . writers == null ) { this . writers = new RecordWriter [ ] { writer } ; } else { RecordWriter < Record > [ ] ws = new RecordWriter [ this . writers . length + 1 ] ; System . arraycopy ( this . writers , 0 , ws , 0 , this . writers . length ) ; ws [ this . writers . length ] = writer ; this . writers = ws ; } }
Adds a writer to the OutputCollector.

@param writer The writer to add.