yangxk1 commented on code in PR #763:
URL: https://github.com/apache/incubator-graphar/pull/763#discussion_r2359942212


##########
maven-projects/info/src/main/java/org/apache/graphar/info/saver/impl/LocalFileSystemYamlGraphSaver.java:
##########
@@ -17,12 +17,22 @@
  * under the License.
  */
 
-package org.apache.graphar.info.loader;
+package org.apache.graphar.info.saver.impl;
 
 import java.io.IOException;
-import org.apache.graphar.info.GraphInfo;
+import java.io.Writer;
+import java.net.URI;
+import java.nio.file.FileSystems;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import org.apache.graphar.info.saver.BaseGraphInfoSaver;
 
-@FunctionalInterface
-public interface GraphLoader {
-    public GraphInfo load(String graphYamlPath) throws IOException;
+public class LocalFileSystemYamlGraphSaver extends BaseGraphInfoSaver {
+
+    public Writer writeYaml(URI uri) throws IOException {
+        Path outputPath = FileSystems.getDefault().getPath(uri.toString());
+        Files.createDirectories(outputPath.getParent());
+        Files.createFile(outputPath);

Review Comment:
   fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@graphar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@graphar.apache.org
For additional commands, e-mail: commits-h...@graphar.apache.org

Reply via email to