mainPlugin/src/main/java/org/simpleyaml/configuration/file/YamlFile.java
/**
     * Saves this {@link YamlFile} to a string and returns it.
     * <p>
     * Comments copied will be those loaded with {@link #loadWithComments()} and those added
     * with {@link #setComment(String, String)} or {@link #setComment(String, String, CommentType)}.
     *
     * @return String containing this configuration with comments.
     * @throws IOException if it hasn't been possible to save configuration file
     */
Saves this  YamlFile to a string and returns it.

Comments copied will be those loaded with  #loadWithComments() and those added
with  #setComment(String, String) or  #setComment(String, String, CommentType).

@return String containing this configuration with comments.
@throws IOException if it hasn't been possible to save configuration file
Saves this YamlFile to a string and returns it . Comments copied will be those loaded with #loadWithComments () and those added with #setComment ( String String ) or #setComment ( String String CommentType ) . @return String containing this configuration with comments . @throws IOException if it hasn ' t been possible to save configuration file
public String saveToString() throws IOException {
        if (this.useComments) {
            return new YamlCommentDumper(this.options(), this.parseComments(), new StringReader(super.dump())).dump();
        }
        return super.saveToString();
    }
public String saveToString ( ) throws IOException { if ( this . useComments ) { return new YamlCommentDumper ( this . options ( ) , this . parseComments ( ) , new StringReader ( super . dump ( ) ) ) . dump ( ) ; } return super . saveToString ( ) ; }
Saves this {@link YamlFile} to a string and returns it.
Saves this { @link YamlFile } to a string and returns it .