Method
writePS
(Tree t, List<String> ruleNames,
String fileName,
String fontName, int fontSize)
Source from the content-addressed store, hash-verified
| 78 | } |
| 79 | |
| 80 | public static void writePS(Tree t, List<String> ruleNames, |
| 81 | String fileName, |
| 82 | String fontName, int fontSize) |
| 83 | throws IOException |
| 84 | { |
| 85 | String ps = getPS(t, ruleNames, fontName, fontSize); |
| 86 | FileWriter f = new FileWriter(fileName); |
| 87 | BufferedWriter bw = new BufferedWriter(f); |
| 88 | try { |
| 89 | bw.write(ps); |
| 90 | } |
| 91 | finally { |
| 92 | bw.close(); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | public static void writePS(Tree t, List<String> ruleNames, String fileName) |
| 97 | throws IOException |
Tested by
no test coverage detected