93949596979899100101102103
writer.writeEndElement(); } writer.writeEndElement(); writer.writeEndDocument(); writer.flush(); } catch (XMLStreamException e) { StringBuilder sb = new StringBuilder("Something went wrong during the XML generation of the table '"); sb.append(table.getOriginalId());
99100101102103104105106107108109
write(children.next(), stream, resourceResolver); } stream.writeEndElement(); stream.writeEndDocument(); } catch (XMLStreamException e) { throw new IOException(e); } }
291292293294295296297298299300301
for (ProtocolInfo protocol : protocols.values()) writeProtocol(xml, protocol); // End document xml.writeEndElement(); xml.writeEndDocument(); } catch (XMLStreamException e) { throw new GuacamoleServerException( "Unable to write protocol list XML.", e);
8687888990919293949596
} // End document xml.writeEndElement(); xml.writeEndDocument(); } catch (XMLStreamException e) { throw new GuacamoleServerException( "Unable to write configuration list XML.", e);
198199200201202203204205206207208
XMLStreamWriter xml = outputFactory.createXMLStreamWriter(response.getWriter()); // Write content of root group xml.writeStartDocument(); writeConnectionGroup(self, xml, root); xml.writeEndDocument(); } catch (XMLStreamException e) { throw new GuacamoleServerException( "Unable to write connection group list XML.", e);
322323324325326327328329330331332
XMLStreamWriter xml = outputFactory.createXMLStreamWriter(response.getWriter()); // Write content of root group xml.writeStartDocument(); writeConnectionGroup(self, xml, root); xml.writeEndDocument(); } catch (XMLStreamException e) { throw new GuacamoleServerException( "Unable to write configuration list XML.", e);
205206207208209210211212213214215
} // End document xml.writeEndElement(); xml.writeEndDocument(); } catch (XMLStreamException e) { throw new GuacamoleServerException( "Unable to write permission list XML.", e);
492493494495496497498499500501502
// End root element xout.writeEndElement(); xout.writeCharacters("\n"); // Close document xout.writeEndDocument(); xout.writeCharacters("\n"); out.flush(); } catch (XMLStreamException exception) { throw new IOException(exception);
303304305306307308309310311312313
out.writeCharacters("\n "); out.writeEndElement(); out.writeCharacters("\n"); out.writeEndElement(); out.writeEndDocument(); } finally { out.flush(); out.close(); }
408409410411412413414415416417418
ms.setProperty(Marshaller.JAXB_FRAGMENT, true); } mc.put(XMLStreamWriter.class.getName(), writer); } marshalToWriter(ms, obj, writer, mt); writer.writeEndDocument(); } else { marshalToOutputStream(ms, obj, os, mt); } }