/** * Writes out the current state of the {@link IApiBaseline} as XML to the * given output stream * * @param stream * @throws CoreException */ private void writeBaselineDescription(IApiBaseline baseline, OutputStream stream) throws CoreException { String xml = getProfileXML(baseline); try { stream.write(xml.getBytes(StandardCharsets.UTF_8)); } catch (IOException e) { abort("Error writing pofile descrition", e); //$NON-NLS-1$ } }