Lines Matching defs:comments
649 private static void writeComments(BufferedWriter bw, String comments)
652 int len = comments.length();
659 char c = comments.charAt(current);
662 bw.write(comments.substring(last, current));
673 comments.charAt(current + 1) == '\n') {
677 (comments.charAt(current + 1) != '#' &&
678 comments.charAt(current + 1) != '!'))
686 bw.write(comments.substring(last, current));
691 * Calls the <code>store(OutputStream out, String comments)</code> method
697 * String comments)</code> method or the
701 * @param comments a description of the property list.
707 public void save(OutputStream out, String comments) {
709 store(out, comments);
723 * If the comments argument is not null, then an ASCII <code>#</code>
724 * character, the comments string, and a line separator are first written
725 * to the output stream. Thus, the <code>comments</code> can serve as an
728 * in comments is replaced by a line separator generated by the <code>Writer</code>
729 * and if the next character in comments is not character <code>#</code> or
754 * @param comments a description of the property list.
762 public void store(Writer writer, String comments)
767 comments,
780 * This method outputs the comments, properties keys and values in
787 * <li>Characters not in Latin-1 in the comments are written as
801 * @param comments a description of the property list.
809 public void store(OutputStream out, String comments)
813 comments,
817 private void store0(BufferedWriter bw, String comments, boolean escUnicode)
820 if (comments != null) {
821 writeComments(bw, comments);