sink = new BytesSink(out).appendAll(codec);
return codec;
}
case JSON: {
Provider<byte[]> codec = new ValueToJsonBytes(new AvroGenericToValue(avroProvider));
sink = new BytesLineSink(out).appendAll(codec);
return codec;
}
case CSV: {
Provider<List<String>> codec = new AvroGenericToStringList(avroProvider);
sink = new CsvSink(out, schema).appendAll(codec);