/** * Get a textual representation of the cue sheet. If the cue sheet was parsed, then the output * of this method is not necessarily identical to the parsed sheet, though it will contain the * same data. Fields may appear in a different order, whitespace may change, comments may be * gone, etc. * * @param cueSheet The CueSheet to serialize. * @return A textual representation of the cue sheet. */ public String serializeCueSheet(final CueSheet cueSheet) { CueSheetSerializer.logger.entering (CueSheetSerializer.class.getCanonicalName(), "serializeCueSheet(CueSheet)", cueSheet); StringBuilder builder = new StringBuilder(); serializeCueSheet(builder, cueSheet, ""); String result = builder.toString(); CueSheetSerializer.logger.exiting(CueSheetSerializer.class.getCanonicalName(), "serializeCueSheet(CueSheet)", result); return result; }
System.out.println((new CueSheetSerializer()).serializeCueSheet(sheet)); xmlSerializer.serializeCueSheet(sheet, System.out);
String s = ser.serializeCueSheet(cueSheet);