/** * Serialize the given collection of objects to the given handler. */ private void serialize(Collection objs, ContentHandler handler, int flags) throws SAXException { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("ser-objs", objs)); _handler = handler; _flags = flags; try { if (!objs.isEmpty()) { handler.startDocument(); serialize(objs); handler.endDocument(); } } finally { reset(); } }
/** * Serialize the given collection of objects to the given handler. */ private void serialize(Collection<Object> objs, ContentHandler handler, int flags) throws SAXException { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("ser-objs", objs)); _handler = handler; _flags = flags; try { if (!objs.isEmpty()) { handler.startDocument(); serialize(objs); handler.endDocument(); } } finally { reset(); } }
/** * Serialize the given collection of objects to the given handler. */ private void serialize(Collection<Object> objs, ContentHandler handler, int flags) throws SAXException { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("ser-objs", objs)); _handler = handler; _flags = flags; try { if (!objs.isEmpty()) { handler.startDocument(); serialize(objs); handler.endDocument(); } } finally { reset(); } }
/** * Serialize the given collection of objects to the given handler. */ private void serialize(Collection<Object> objs, ContentHandler handler, int flags) throws SAXException { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("ser-objs", objs)); _handler = handler; _flags = flags; try { if (!objs.isEmpty()) { handler.startDocument(); serialize(objs); handler.endDocument(); } } finally { reset(); } }