5 importJava "org.simantics.graphfile.util.GraphFileUtil" where
6 "Writes contents of a file to DB, including the timestamp"
7 @JavaName writeDataToGraphSCLhack
8 writeDataToGraph:: File -> Resource -> <WriteGraph>()
10 "Writes contents of a byte array to DB"
11 @JavaName writeDataToGraph
12 writeDataToGraphBytes:: ByteArray -> Resource -> <WriteGraph>()
14 "Creates a temp file of a GraphFile resource"
15 @JavaName toTempFileSCLhack
16 toTempFile :: Resource -> <ReadGraph> File
18 "Writes contents of a GraphFile into a regular File"
19 @JavaName writeDataToFileSCLhack
20 writeDataToFile :: Resource -> File -> <ReadGraph>()
22 "Writes contents of a file to DB, including the filename and timestamp"
23 @JavaName toGraphSCLhack
24 toGraphWithPath :: String -> Resource -> <WriteGraph>()
26 "Writes contents of a file to DB, including the filename and timestamp"
28 toGraph :: File -> Resource -> <WriteGraph>()
30 "Returns contents of a GraphFile as a byte array"
32 getData :: Resource -> <ReadGraph> ByteArray
34 "Returns contents of a GraphFile as a String"
35 @JavaName getDataAsString
36 getDataAsString :: Resource -> <ReadGraph> String