(boolean secure)
| 1076 | } |
| 1077 | |
| 1078 | private static File createInboundFile(boolean secure) { |
| 1079 | String template = ((secure) ? "s" : "u") + "inb%d.pkt"; |
| 1080 | int i = 0; |
| 1081 | File f = new File(getInbound() + File.separator |
| 1082 | + String.format(template, i)); |
| 1083 | while (f.exists()) { |
| 1084 | i++; |
| 1085 | f = new File(getInbound() + File.separator |
| 1086 | + String.format(template, i)); |
| 1087 | } |
| 1088 | return f; |
| 1089 | } |
| 1090 | |
| 1091 | public static String getInbound() { |
| 1092 | return MainHandler.getCurrentInstance().getProperty(BINKP_INBOUND, |
no test coverage detected