1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
|
<!-- NewPage -->
|
3
|
<html lang="cs">
|
4
|
<head>
|
5
|
<!-- Generated by javadoc (1.8.0_45) on Thu May 07 16:47:37 CEST 2020 -->
|
6
|
<title>FileWorker</title>
|
7
|
<meta name="date" content="2020-05-07">
|
8
|
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
9
|
<script type="text/javascript" src="../script.js"></script>
|
10
|
</head>
|
11
|
<body>
|
12
|
<script type="text/javascript"><!--
|
13
|
try {
|
14
|
if (location.href.indexOf('is-external=true') == -1) {
|
15
|
parent.document.title="FileWorker";
|
16
|
}
|
17
|
}
|
18
|
catch(err) {
|
19
|
}
|
20
|
//-->
|
21
|
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9};
|
22
|
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
|
23
|
var altColor = "altColor";
|
24
|
var rowColor = "rowColor";
|
25
|
var tableTab = "tableTab";
|
26
|
var activeTableTab = "activeTableTab";
|
27
|
</script>
|
28
|
<noscript>
|
29
|
<div>JavaScript is disabled on your browser.</div>
|
30
|
</noscript>
|
31
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
32
|
<div class="topNav"><a name="navbar.top">
|
33
|
<!-- -->
|
34
|
</a>
|
35
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
36
|
<a name="navbar.top.firstrow">
|
37
|
<!-- -->
|
38
|
</a>
|
39
|
<ul class="navList" title="Navigation">
|
40
|
<li><a href="../overview-summary.html">Overview</a></li>
|
41
|
<li><a href="package-summary.html">Package</a></li>
|
42
|
<li class="navBarCell1Rev">Class</li>
|
43
|
<li><a href="class-use/FileWorker.html">Use</a></li>
|
44
|
<li><a href="package-tree.html">Tree</a></li>
|
45
|
<li><a href="../deprecated-list.html">Deprecated</a></li>
|
46
|
<li><a href="../index-files/index-1.html">Index</a></li>
|
47
|
<li><a href="../help-doc.html">Help</a></li>
|
48
|
</ul>
|
49
|
</div>
|
50
|
<div class="subNav">
|
51
|
<ul class="navList">
|
52
|
<li><a href="../io/Database.DB_Messenger.html" title="class in io"><span class="typeNameLink">Prev Class</span></a></li>
|
53
|
<li><a href="../io/InflaterInStream.html" title="class in io"><span class="typeNameLink">Next Class</span></a></li>
|
54
|
</ul>
|
55
|
<ul class="navList">
|
56
|
<li><a href="../index.html?io/FileWorker.html" target="_top">Frames</a></li>
|
57
|
<li><a href="FileWorker.html" target="_top">No Frames</a></li>
|
58
|
</ul>
|
59
|
<ul class="navList" id="allclasses_navbar_top">
|
60
|
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
61
|
</ul>
|
62
|
<div>
|
63
|
<script type="text/javascript"><!--
|
64
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
65
|
if(window==top) {
|
66
|
allClassesLink.style.display = "block";
|
67
|
}
|
68
|
else {
|
69
|
allClassesLink.style.display = "none";
|
70
|
}
|
71
|
//-->
|
72
|
</script>
|
73
|
</div>
|
74
|
<div>
|
75
|
<ul class="subNavList">
|
76
|
<li>Summary: </li>
|
77
|
<li>Nested | </li>
|
78
|
<li><a href="#field.summary">Field</a> | </li>
|
79
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
80
|
<li><a href="#method.summary">Method</a></li>
|
81
|
</ul>
|
82
|
<ul class="subNavList">
|
83
|
<li>Detail: </li>
|
84
|
<li><a href="#field.detail">Field</a> | </li>
|
85
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
86
|
<li><a href="#method.detail">Method</a></li>
|
87
|
</ul>
|
88
|
</div>
|
89
|
<a name="skip.navbar.top">
|
90
|
<!-- -->
|
91
|
</a></div>
|
92
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
93
|
<!-- ======== START OF CLASS DATA ======== -->
|
94
|
<div class="header">
|
95
|
<div class="subTitle">io</div>
|
96
|
<h2 title="Class FileWorker" class="title">Class FileWorker</h2>
|
97
|
</div>
|
98
|
<div class="contentContainer">
|
99
|
<ul class="inheritance">
|
100
|
<li>java.lang.Object</li>
|
101
|
<li>
|
102
|
<ul class="inheritance">
|
103
|
<li>io.FileWorker</li>
|
104
|
</ul>
|
105
|
</li>
|
106
|
</ul>
|
107
|
<div class="description">
|
108
|
<ul class="blockList">
|
109
|
<li class="blockList">
|
110
|
<hr>
|
111
|
<br>
|
112
|
<pre>public class <span class="typeNameLabel">FileWorker</span>
|
113
|
extends java.lang.Object</pre>
|
114
|
<div class="block">This class contains only static attributes and methods for I/O operations.</div>
|
115
|
</li>
|
116
|
</ul>
|
117
|
</div>
|
118
|
<div class="summary">
|
119
|
<ul class="blockList">
|
120
|
<li class="blockList">
|
121
|
<!-- =========== FIELD SUMMARY =========== -->
|
122
|
<ul class="blockList">
|
123
|
<li class="blockList"><a name="field.summary">
|
124
|
<!-- -->
|
125
|
</a>
|
126
|
<h3>Field Summary</h3>
|
127
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
128
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
129
|
<tr>
|
130
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
131
|
<th class="colLast" scope="col">Field and Description</th>
|
132
|
</tr>
|
133
|
<tr class="altColor">
|
134
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
135
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#ACE_MODE">ACE_MODE</a></span></code>
|
136
|
<div class="block">Attribute for the editor mode in the configuration file.</div>
|
137
|
</td>
|
138
|
</tr>
|
139
|
<tr class="rowColor">
|
140
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
141
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#ACE_THEME">ACE_THEME</a></span></code>
|
142
|
<div class="block">Attribute for the editor theme in the configuration file.</div>
|
143
|
</td>
|
144
|
</tr>
|
145
|
<tr class="altColor">
|
146
|
<td class="colFirst"><code>private static java.lang.String</code></td>
|
147
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#CONFIG">CONFIG</a></span></code>
|
148
|
<div class="block">The name of the configuration file.</div>
|
149
|
</td>
|
150
|
</tr>
|
151
|
<tr class="rowColor">
|
152
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
153
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#DB_TYPE">DB_TYPE</a></span></code>
|
154
|
<div class="block">Attribute for the database type in the configuration file.</div>
|
155
|
</td>
|
156
|
</tr>
|
157
|
<tr class="altColor">
|
158
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
159
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#DB_URL">DB_URL</a></span></code>
|
160
|
<div class="block">Attribute for the database URL in the configuration file.</div>
|
161
|
</td>
|
162
|
</tr>
|
163
|
<tr class="rowColor">
|
164
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
165
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#DB_USER">DB_USER</a></span></code>
|
166
|
<div class="block">Attribute for the user name with database access in the configuration file.</div>
|
167
|
</td>
|
168
|
</tr>
|
169
|
<tr class="altColor">
|
170
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
171
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#INPUT_DIR">INPUT_DIR</a></span></code>
|
172
|
<div class="block">Attribute for the directory with the input files in the configuration file.</div>
|
173
|
</td>
|
174
|
</tr>
|
175
|
</table>
|
176
|
</li>
|
177
|
</ul>
|
178
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
179
|
<ul class="blockList">
|
180
|
<li class="blockList"><a name="constructor.summary">
|
181
|
<!-- -->
|
182
|
</a>
|
183
|
<h3>Constructor Summary</h3>
|
184
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
185
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
186
|
<tr>
|
187
|
<th class="colOne" scope="col">Constructor and Description</th>
|
188
|
</tr>
|
189
|
<tr class="altColor">
|
190
|
<td class="colOne"><code><span class="memberNameLink"><a href="../io/FileWorker.html#FileWorker--">FileWorker</a></span>()</code> </td>
|
191
|
</tr>
|
192
|
</table>
|
193
|
</li>
|
194
|
</ul>
|
195
|
<!-- ========== METHOD SUMMARY =========== -->
|
196
|
<ul class="blockList">
|
197
|
<li class="blockList"><a name="method.summary">
|
198
|
<!-- -->
|
199
|
</a>
|
200
|
<h3>Method Summary</h3>
|
201
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
202
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
203
|
<tr>
|
204
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
205
|
<th class="colLast" scope="col">Method and Description</th>
|
206
|
</tr>
|
207
|
<tr id="i0" class="altColor">
|
208
|
<td class="colFirst"><code>static java.io.PrintStream</code></td>
|
209
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#createRedirectStream-boolean-">createRedirectStream</a></span>(boolean error)</code> </td>
|
210
|
</tr>
|
211
|
<tr id="i1" class="rowColor">
|
212
|
<td class="colFirst"><code>static byte[]</code></td>
|
213
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#extractFileContent-byte:A-">extractFileContent</a></span>(byte[] rawContent)</code>
|
214
|
<div class="block">If the input byte array is a ZIP archive, it is converted to extracted data.</div>
|
215
|
</td>
|
216
|
</tr>
|
217
|
<tr id="i2" class="altColor">
|
218
|
<td class="colFirst"><code>static void</code></td>
|
219
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#getAceModesAndThemes-javafx.collections.ObservableList-javafx.collections.ObservableList-">getAceModesAndThemes</a></span>(javafx.collections.ObservableList<java.lang.String> modes,
|
220
|
javafx.collections.ObservableList<java.lang.String> themes)</code>
|
221
|
<div class="block">Gets all possible ACE modes and themes.</div>
|
222
|
</td>
|
223
|
</tr>
|
224
|
<tr id="i3" class="rowColor">
|
225
|
<td class="colFirst"><code>static java.util.Properties</code></td>
|
226
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#getConfig--">getConfig</a></span>()</code> </td>
|
227
|
</tr>
|
228
|
<tr id="i4" class="altColor">
|
229
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
230
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#getResource-java.lang.String-">getResource</a></span>(java.lang.String path)</code> </td>
|
231
|
</tr>
|
232
|
<tr id="i5" class="rowColor">
|
233
|
<td class="colFirst"><code>static byte[]</code></td>
|
234
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#loadFileContent-java.io.File-">loadFileContent</a></span>(java.io.File file)</code> </td>
|
235
|
</tr>
|
236
|
<tr id="i6" class="altColor">
|
237
|
<td class="colFirst"><code>static void</code></td>
|
238
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#saveConfig-java.util.Properties-">saveConfig</a></span>(java.util.Properties properties)</code>
|
239
|
<div class="block">Saves the configuration file.</div>
|
240
|
</td>
|
241
|
</tr>
|
242
|
<tr id="i7" class="rowColor">
|
243
|
<td class="colFirst"><code>static void</code></td>
|
244
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/FileWorker.html#saveJson-java.io.File-java.lang.String-">saveJson</a></span>(java.io.File file,
|
245
|
java.lang.String json)</code>
|
246
|
<div class="block">Saves resulting text (JSON) to the file.</div>
|
247
|
</td>
|
248
|
</tr>
|
249
|
</table>
|
250
|
<ul class="blockList">
|
251
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
252
|
<!-- -->
|
253
|
</a>
|
254
|
<h3>Methods inherited from class java.lang.Object</h3>
|
255
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
256
|
</ul>
|
257
|
</li>
|
258
|
</ul>
|
259
|
</li>
|
260
|
</ul>
|
261
|
</div>
|
262
|
<div class="details">
|
263
|
<ul class="blockList">
|
264
|
<li class="blockList">
|
265
|
<!-- ============ FIELD DETAIL =========== -->
|
266
|
<ul class="blockList">
|
267
|
<li class="blockList"><a name="field.detail">
|
268
|
<!-- -->
|
269
|
</a>
|
270
|
<h3>Field Detail</h3>
|
271
|
<a name="CONFIG">
|
272
|
<!-- -->
|
273
|
</a>
|
274
|
<ul class="blockList">
|
275
|
<li class="blockList">
|
276
|
<h4>CONFIG</h4>
|
277
|
<pre>private static final java.lang.String CONFIG</pre>
|
278
|
<div class="block">The name of the configuration file.</div>
|
279
|
<dl>
|
280
|
<dt><span class="seeLabel">See Also:</span></dt>
|
281
|
<dd><a href="../constant-values.html#io.FileWorker.CONFIG">Constant Field Values</a></dd>
|
282
|
</dl>
|
283
|
</li>
|
284
|
</ul>
|
285
|
<a name="INPUT_DIR">
|
286
|
<!-- -->
|
287
|
</a>
|
288
|
<ul class="blockList">
|
289
|
<li class="blockList">
|
290
|
<h4>INPUT_DIR</h4>
|
291
|
<pre>public static final java.lang.String INPUT_DIR</pre>
|
292
|
<div class="block">Attribute for the directory with the input files in the configuration file.</div>
|
293
|
<dl>
|
294
|
<dt><span class="seeLabel">See Also:</span></dt>
|
295
|
<dd><a href="../constant-values.html#io.FileWorker.INPUT_DIR">Constant Field Values</a></dd>
|
296
|
</dl>
|
297
|
</li>
|
298
|
</ul>
|
299
|
<a name="ACE_MODE">
|
300
|
<!-- -->
|
301
|
</a>
|
302
|
<ul class="blockList">
|
303
|
<li class="blockList">
|
304
|
<h4>ACE_MODE</h4>
|
305
|
<pre>public static final java.lang.String ACE_MODE</pre>
|
306
|
<div class="block">Attribute for the editor mode in the configuration file.</div>
|
307
|
<dl>
|
308
|
<dt><span class="seeLabel">See Also:</span></dt>
|
309
|
<dd><a href="../constant-values.html#io.FileWorker.ACE_MODE">Constant Field Values</a></dd>
|
310
|
</dl>
|
311
|
</li>
|
312
|
</ul>
|
313
|
<a name="ACE_THEME">
|
314
|
<!-- -->
|
315
|
</a>
|
316
|
<ul class="blockList">
|
317
|
<li class="blockList">
|
318
|
<h4>ACE_THEME</h4>
|
319
|
<pre>public static final java.lang.String ACE_THEME</pre>
|
320
|
<div class="block">Attribute for the editor theme in the configuration file.</div>
|
321
|
<dl>
|
322
|
<dt><span class="seeLabel">See Also:</span></dt>
|
323
|
<dd><a href="../constant-values.html#io.FileWorker.ACE_THEME">Constant Field Values</a></dd>
|
324
|
</dl>
|
325
|
</li>
|
326
|
</ul>
|
327
|
<a name="DB_TYPE">
|
328
|
<!-- -->
|
329
|
</a>
|
330
|
<ul class="blockList">
|
331
|
<li class="blockList">
|
332
|
<h4>DB_TYPE</h4>
|
333
|
<pre>public static final java.lang.String DB_TYPE</pre>
|
334
|
<div class="block">Attribute for the database type in the configuration file.</div>
|
335
|
<dl>
|
336
|
<dt><span class="seeLabel">See Also:</span></dt>
|
337
|
<dd><a href="../constant-values.html#io.FileWorker.DB_TYPE">Constant Field Values</a></dd>
|
338
|
</dl>
|
339
|
</li>
|
340
|
</ul>
|
341
|
<a name="DB_URL">
|
342
|
<!-- -->
|
343
|
</a>
|
344
|
<ul class="blockList">
|
345
|
<li class="blockList">
|
346
|
<h4>DB_URL</h4>
|
347
|
<pre>public static final java.lang.String DB_URL</pre>
|
348
|
<div class="block">Attribute for the database URL in the configuration file.</div>
|
349
|
<dl>
|
350
|
<dt><span class="seeLabel">See Also:</span></dt>
|
351
|
<dd><a href="../constant-values.html#io.FileWorker.DB_URL">Constant Field Values</a></dd>
|
352
|
</dl>
|
353
|
</li>
|
354
|
</ul>
|
355
|
<a name="DB_USER">
|
356
|
<!-- -->
|
357
|
</a>
|
358
|
<ul class="blockListLast">
|
359
|
<li class="blockList">
|
360
|
<h4>DB_USER</h4>
|
361
|
<pre>public static final java.lang.String DB_USER</pre>
|
362
|
<div class="block">Attribute for the user name with database access in the configuration file.</div>
|
363
|
<dl>
|
364
|
<dt><span class="seeLabel">See Also:</span></dt>
|
365
|
<dd><a href="../constant-values.html#io.FileWorker.DB_USER">Constant Field Values</a></dd>
|
366
|
</dl>
|
367
|
</li>
|
368
|
</ul>
|
369
|
</li>
|
370
|
</ul>
|
371
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
372
|
<ul class="blockList">
|
373
|
<li class="blockList"><a name="constructor.detail">
|
374
|
<!-- -->
|
375
|
</a>
|
376
|
<h3>Constructor Detail</h3>
|
377
|
<a name="FileWorker--">
|
378
|
<!-- -->
|
379
|
</a>
|
380
|
<ul class="blockListLast">
|
381
|
<li class="blockList">
|
382
|
<h4>FileWorker</h4>
|
383
|
<pre>public FileWorker()</pre>
|
384
|
</li>
|
385
|
</ul>
|
386
|
</li>
|
387
|
</ul>
|
388
|
<!-- ============ METHOD DETAIL ========== -->
|
389
|
<ul class="blockList">
|
390
|
<li class="blockList"><a name="method.detail">
|
391
|
<!-- -->
|
392
|
</a>
|
393
|
<h3>Method Detail</h3>
|
394
|
<a name="getResource-java.lang.String-">
|
395
|
<!-- -->
|
396
|
</a>
|
397
|
<ul class="blockList">
|
398
|
<li class="blockList">
|
399
|
<h4>getResource</h4>
|
400
|
<pre>public static java.lang.String getResource(java.lang.String path)</pre>
|
401
|
<dl>
|
402
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
403
|
<dd><code>path</code> - relative path to the file in the resources.</dd>
|
404
|
<dt><span class="returnLabel">Returns:</span></dt>
|
405
|
<dd>absolute path to the resource.</dd>
|
406
|
</dl>
|
407
|
</li>
|
408
|
</ul>
|
409
|
<a name="getConfig--">
|
410
|
<!-- -->
|
411
|
</a>
|
412
|
<ul class="blockList">
|
413
|
<li class="blockList">
|
414
|
<h4>getConfig</h4>
|
415
|
<pre>public static java.util.Properties getConfig()</pre>
|
416
|
<dl>
|
417
|
<dt><span class="returnLabel">Returns:</span></dt>
|
418
|
<dd>loaded configuration file or, when I/O error occurs, an empty
|
419
|
property list.</dd>
|
420
|
</dl>
|
421
|
</li>
|
422
|
</ul>
|
423
|
<a name="saveConfig-java.util.Properties-">
|
424
|
<!-- -->
|
425
|
</a>
|
426
|
<ul class="blockList">
|
427
|
<li class="blockList">
|
428
|
<h4>saveConfig</h4>
|
429
|
<pre>public static void saveConfig(java.util.Properties properties)</pre>
|
430
|
<div class="block">Saves the configuration file.</div>
|
431
|
<dl>
|
432
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
433
|
<dd><code>properties</code> - configuration file properties.</dd>
|
434
|
</dl>
|
435
|
</li>
|
436
|
</ul>
|
437
|
<a name="getAceModesAndThemes-javafx.collections.ObservableList-javafx.collections.ObservableList-">
|
438
|
<!-- -->
|
439
|
</a>
|
440
|
<ul class="blockList">
|
441
|
<li class="blockList">
|
442
|
<h4>getAceModesAndThemes</h4>
|
443
|
<pre>public static void getAceModesAndThemes(javafx.collections.ObservableList<java.lang.String> modes,
|
444
|
javafx.collections.ObservableList<java.lang.String> themes)</pre>
|
445
|
<div class="block">Gets all possible ACE modes and themes.</div>
|
446
|
<dl>
|
447
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
448
|
<dd><code>modes</code> - list for the modes.</dd>
|
449
|
<dd><code>themes</code> - list for the themes.</dd>
|
450
|
</dl>
|
451
|
</li>
|
452
|
</ul>
|
453
|
<a name="createRedirectStream-boolean-">
|
454
|
<!-- -->
|
455
|
</a>
|
456
|
<ul class="blockList">
|
457
|
<li class="blockList">
|
458
|
<h4>createRedirectStream</h4>
|
459
|
<pre>public static java.io.PrintStream createRedirectStream(boolean error)
|
460
|
throws java.io.FileNotFoundException</pre>
|
461
|
<dl>
|
462
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
463
|
<dd><code>error</code> - if it is an error output.</dd>
|
464
|
<dt><span class="returnLabel">Returns:</span></dt>
|
465
|
<dd>created stream for output redirection.</dd>
|
466
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
467
|
<dd><code>java.io.FileNotFoundException</code> - if an error occurred while opening the file for
|
468
|
writing.</dd>
|
469
|
</dl>
|
470
|
</li>
|
471
|
</ul>
|
472
|
<a name="loadFileContent-java.io.File-">
|
473
|
<!-- -->
|
474
|
</a>
|
475
|
<ul class="blockList">
|
476
|
<li class="blockList">
|
477
|
<h4>loadFileContent</h4>
|
478
|
<pre>public static byte[] loadFileContent(java.io.File file)
|
479
|
throws java.io.IOException</pre>
|
480
|
<dl>
|
481
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
482
|
<dd><code>file</code> - input file.</dd>
|
483
|
<dt><span class="returnLabel">Returns:</span></dt>
|
484
|
<dd>the content of the file in a byte array.</dd>
|
485
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
486
|
<dd><code>java.io.IOException</code> - if an I/O error occurred while reading the file.</dd>
|
487
|
</dl>
|
488
|
</li>
|
489
|
</ul>
|
490
|
<a name="extractFileContent-byte:A-">
|
491
|
<!-- -->
|
492
|
</a>
|
493
|
<ul class="blockList">
|
494
|
<li class="blockList">
|
495
|
<h4>extractFileContent</h4>
|
496
|
<pre>public static byte[] extractFileContent(byte[] rawContent)
|
497
|
throws java.io.IOException</pre>
|
498
|
<div class="block">If the input byte array is a ZIP archive, it is converted to extracted data.</div>
|
499
|
<dl>
|
500
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
501
|
<dd><code>rawContent</code> - raw file content.</dd>
|
502
|
<dt><span class="returnLabel">Returns:</span></dt>
|
503
|
<dd>raw content, unless it is a ZIP archive, otherwise extracted data.</dd>
|
504
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
505
|
<dd><code>java.io.IOException</code> - if an I/O error occurs.</dd>
|
506
|
</dl>
|
507
|
</li>
|
508
|
</ul>
|
509
|
<a name="saveJson-java.io.File-java.lang.String-">
|
510
|
<!-- -->
|
511
|
</a>
|
512
|
<ul class="blockListLast">
|
513
|
<li class="blockList">
|
514
|
<h4>saveJson</h4>
|
515
|
<pre>public static void saveJson(java.io.File file,
|
516
|
java.lang.String json)
|
517
|
throws java.io.IOException</pre>
|
518
|
<div class="block">Saves resulting text (JSON) to the file.</div>
|
519
|
<dl>
|
520
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
521
|
<dd><code>file</code> - where to save the text.</dd>
|
522
|
<dd><code>json</code> - the resulting text in JSON format.</dd>
|
523
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
524
|
<dd><code>java.io.IOException</code> - if an I/O error occurred while saving the text.</dd>
|
525
|
</dl>
|
526
|
</li>
|
527
|
</ul>
|
528
|
</li>
|
529
|
</ul>
|
530
|
</li>
|
531
|
</ul>
|
532
|
</div>
|
533
|
</div>
|
534
|
<!-- ========= END OF CLASS DATA ========= -->
|
535
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
536
|
<div class="bottomNav"><a name="navbar.bottom">
|
537
|
<!-- -->
|
538
|
</a>
|
539
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
540
|
<a name="navbar.bottom.firstrow">
|
541
|
<!-- -->
|
542
|
</a>
|
543
|
<ul class="navList" title="Navigation">
|
544
|
<li><a href="../overview-summary.html">Overview</a></li>
|
545
|
<li><a href="package-summary.html">Package</a></li>
|
546
|
<li class="navBarCell1Rev">Class</li>
|
547
|
<li><a href="class-use/FileWorker.html">Use</a></li>
|
548
|
<li><a href="package-tree.html">Tree</a></li>
|
549
|
<li><a href="../deprecated-list.html">Deprecated</a></li>
|
550
|
<li><a href="../index-files/index-1.html">Index</a></li>
|
551
|
<li><a href="../help-doc.html">Help</a></li>
|
552
|
</ul>
|
553
|
</div>
|
554
|
<div class="subNav">
|
555
|
<ul class="navList">
|
556
|
<li><a href="../io/Database.DB_Messenger.html" title="class in io"><span class="typeNameLink">Prev Class</span></a></li>
|
557
|
<li><a href="../io/InflaterInStream.html" title="class in io"><span class="typeNameLink">Next Class</span></a></li>
|
558
|
</ul>
|
559
|
<ul class="navList">
|
560
|
<li><a href="../index.html?io/FileWorker.html" target="_top">Frames</a></li>
|
561
|
<li><a href="FileWorker.html" target="_top">No Frames</a></li>
|
562
|
</ul>
|
563
|
<ul class="navList" id="allclasses_navbar_bottom">
|
564
|
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
565
|
</ul>
|
566
|
<div>
|
567
|
<script type="text/javascript"><!--
|
568
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
569
|
if(window==top) {
|
570
|
allClassesLink.style.display = "block";
|
571
|
}
|
572
|
else {
|
573
|
allClassesLink.style.display = "none";
|
574
|
}
|
575
|
//-->
|
576
|
</script>
|
577
|
</div>
|
578
|
<div>
|
579
|
<ul class="subNavList">
|
580
|
<li>Summary: </li>
|
581
|
<li>Nested | </li>
|
582
|
<li><a href="#field.summary">Field</a> | </li>
|
583
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
584
|
<li><a href="#method.summary">Method</a></li>
|
585
|
</ul>
|
586
|
<ul class="subNavList">
|
587
|
<li>Detail: </li>
|
588
|
<li><a href="#field.detail">Field</a> | </li>
|
589
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
590
|
<li><a href="#method.detail">Method</a></li>
|
591
|
</ul>
|
592
|
</div>
|
593
|
<a name="skip.navbar.bottom">
|
594
|
<!-- -->
|
595
|
</a></div>
|
596
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
597
|
</body>
|
598
|
</html>
|