Here you can find the source of save(String modelo, String filename)
public static boolean save(String modelo, String filename)
//package com.java2s; /*/*w w w . j a v a2 s . com*/ public static boolean save(Model modelo, String filename) { try { BufferedWriter out = new BufferedWriter(new FileWriter(filename)); // RDFDataMgr.write(System.out, modelo, Lang.TURTLE) ; RDFDataMgr.write(out, modelo, Lang.TURTLE) ; out.close(); } catch (IOException ex) { Logger.getLogger("licenser").warn("Error saving file. " + ex.getMessage()); return false; } return true; }*/ import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; public class Main { public static boolean save(String modelo, String filename) { try { BufferedWriter out = new BufferedWriter(new FileWriter(filename)); out.write(modelo); out.close(); } catch (IOException ex) { // Logger.getLogger("licenser").warn("Error saving file. " + ex.getMessage()); return false; } return true; } }