1 | static O readPersistentVarFromOtherProgram(S progID, S variableName) ctex { |
2 | bool allDynamic = false; |
3 | File textFile = programFile(progID, variableName + ".text"); |
4 | S value = loadTextFile(textFile); |
5 | if (value != null) ret value; |
6 | File structureFile = programFile(progID, variableName + ".structure"); |
7 | value = loadTextFile(structureFile); |
8 | |
9 | if (nempty(value)) |
10 | ret allDynamic ? safeUnstructure(value) : unstructure(value); |
11 | |
12 | File structureGZFile = programFile(progID, variableName + ".structure.gz"); |
13 | if (!structureGZFile.isFile()) null; |
14 | InputStream fis = new FileInputStream(structureGZFile); |
15 | try { |
16 | GZIPInputStream gis = newGZIPInputStream(fis); |
17 | InputStreamReader reader = new InputStreamReader(gis, "UTF-8"); |
18 | BufferedReader bufferedReader = new BufferedReader(reader); |
19 | ret unstructure_tok(javaTokC_noMLS_onReader(bufferedReader), allDynamic, null); |
20 | } finally { |
21 | fis.close(); |
22 | } |
23 | } |
Began life as a copy of #1001043
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014484 |
Snippet name: | readPersistentVarFromOtherProgram |
Eternal ID of this version: | #1014484/3 |
Text MD5: | 34be9771dda3dde36dc3cd5043551854 |
Author: | stefan |
Category: | javax / persistence |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-29 14:04:57 |
Source code size: | 953 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 466 / 494 |
Version history: | 2 change(s) |
Referenced in: | [show references] |