X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graphfile%2Fscl%2FSimantics%2FGraphFile.scl;fp=bundles%2Forg.simantics.graphfile%2Fscl%2FSimantics%2FGraphFile.scl;h=dd28870d32723f1a7fc437f8280a90335eeb2b32;hb=24d45eec3a3bad14d1a275387c20a94cea594562;hp=0000000000000000000000000000000000000000;hpb=2bbecd30ee49d821a0abeaf6d417b5a7fdbe015f;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.graphfile/scl/Simantics/GraphFile.scl b/bundles/org.simantics.graphfile/scl/Simantics/GraphFile.scl new file mode 100644 index 000000000..dd28870d3 --- /dev/null +++ b/bundles/org.simantics.graphfile/scl/Simantics/GraphFile.scl @@ -0,0 +1,41 @@ +import "Simantics/DB" +import "File" + + +importJava "org.simantics.graphfile.util.GraphFileUtil" where + "Writes contents of a file to DB, including the timestamp" + @JavaName writeDataToGraphSCLhack + writeDataToGraph:: File -> Resource -> () + + "Writes contents of a byte array to DB" + @JavaName writeDataToGraph + writeDataToGraphBytes:: ByteArray -> Resource -> () + + "Creates a temp file of a GraphFile resource" + @JavaName toTempFileSCLhack + toTempFile :: Resource -> File + + "Writes contents of a GraphFile into a regular File" + @JavaName writeDataToFileSCLhack + writeDataToFile :: Resource -> File -> () + + "Writes contents of a file to DB, including the filename and timestamp" + @JavaName toGraphSCLhack + toGraphWithPath :: String -> Resource -> () + + "Writes contents of a file to DB, including the filename and timestamp" + @JavaName toGraph + toGraph :: File -> Resource -> () + + "Returns contents of a GraphFile as a byte array" + @JavaName getData + getData :: Resource -> ByteArray + + "Returns contents of a GraphFile as a String" + @JavaName getDataAsString + getDataAsString :: Resource -> String + + + + + \ No newline at end of file