} else {
iox = new IOOutputStream(io);
}
Serializer ser = new JRubySerializer(new EmitterImpl(iox,cfg),new ResolverImpl(),cfg);
try {
ser.open();
Representer r = new JRubyRepresenter(ser, cfg);
for(Iterator iter = objs.getList().iterator();iter.hasNext();) {
r.represent(iter.next());
}
ser.close();