XMLStorage.java
25.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.service.storage;
import com.adobe.xfa.AppModel;
import com.adobe.xfa.Attribute;
import com.adobe.xfa.DOMSaveOptions;
import com.adobe.xfa.Document;
import com.adobe.xfa.Element;
import com.adobe.xfa.Model;
import com.adobe.xfa.ModelFactory;
import com.adobe.xfa.Node;
import com.adobe.xfa.NodeList;
import com.adobe.xfa.Obj;
import com.adobe.xfa.Option;
import com.adobe.xfa.ProcessingInstruction;
import com.adobe.xfa.XFA;
import com.adobe.xfa.data.DataModel;
import com.adobe.xfa.data.DataNode;
import com.adobe.xfa.service.storage.PacketHandler;
import com.adobe.xfa.service.storage.StorageService;
import com.adobe.xfa.ut.ExFull;
import com.adobe.xfa.ut.MsgFormat;
import com.adobe.xfa.ut.ResId;
import com.adobe.xfa.ut.StringUtils;
import com.adobe.xfa.ut.Version;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.util.List;
public final class XMLStorage
extends StorageService {
private static final String gsAttrQChar = "attributeQuoteChar";
private static final String gsCharArg = "'|\"";
private static final String gsEntityChars = "entityChars";
private static final String gsFormatArg = "raw|simple|pretty";
private static final String gsIncrementalLoadArg = "none|forwardOnly";
private static final String gsIndentLevel = "indentLevel";
private static final String gsMaxEntityCharRange = "maxEntityCharRange";
private static final String gsMinEntityCharRange = "minEntityCharRange";
private static final String gsModel = "Model";
private static final String gsPercentD = "%d";
private static final String gsProcessXSL = "processXSL";
private static final String gssetPI = "setPI";
private static final String gsXFAOption = "XFAOption";
private static final String gsXSL = "XSL";
private static final String gsXSLFile = "XSLFile";
private final Option mGeneratorOption;
private final Option mAPIVersionOption;
private final Option mProcessXSLOption;
private final Option mXSLOption;
private final Option mIncrementalOption;
private final Option mModelOption;
private final Option mSetPIOption;
private final Option mXFAPIOption;
private final Option mFormatOption;
private final Option mEncodingOption;
private final Option mIndentLevelOption;
private final Option mAttributeQuoteCharOption;
private final Option mEntityCharsOption;
private final Option mMaxEntityCharRangeOption;
private final Option mMinEntityCharRangeOption;
private final Option mXSLFileOption;
private final File moFileName;
private final URL mUrl;
static String compactPIs(String piName, Document doc) {
assert (piName != null);
ProcessingInstruction firstPI = null;
Node oChild = doc.getFirstXMLChild();
while (oChild != null) {
Node oNext = oChild.getNextXMLSibling();
if (oChild instanceof ProcessingInstruction && oChild.getName().equals(piName)) {
if (firstPI == null) {
firstPI = (ProcessingInstruction)oChild;
} else {
String sData = firstPI.getData() + ' ' + ((ProcessingInstruction)oChild).getData();
firstPI.setData(sData);
doc.removeChild(oNext);
}
}
if (oChild instanceof Element) break;
oChild = oNext;
}
if (firstPI == null) {
return "";
}
return firstPI.getData();
}
public void setGenerator(String newGeneratorTag) {
}
static void updateProcessingInstruction(Document doc, String piName, String piValue) {
assert (piName != null);
boolean bValueReplaced = false;
for (Node oChild = doc.getFirstXMLChild(); oChild != null; oChild = oChild.getNextXMLSibling()) {
if (oChild instanceof ProcessingInstruction && oChild.getName().equals(piName)) {
((ProcessingInstruction)oChild).setData(piValue);
bValueReplaced = true;
break;
}
if (oChild instanceof Element) break;
}
if (!bValueReplaced) {
ProcessingInstruction generatorNode = new ProcessingInstruction(null, piName, piValue);
doc.insertChild(generatorNode, doc.getFirstXMLChild(), false);
}
}
static String updateValue(String nodeValue, String optionName, String optionValue) {
StringBuilder sNodeValue = new StringBuilder(nodeValue);
boolean bValueReplaced = false;
char cDoubleQuote = '\"';
char cSingleQuote = '\'';
String namePrefix = optionName + "=";
int nFoundAt = nodeValue.indexOf(namePrefix);
if (nFoundAt >= 0) {
int nValueStart = nFoundAt + namePrefix.length() + 1;
int cQuote = 32;
if (nodeValue.charAt(nValueStart - 1) == cDoubleQuote) {
cQuote = cDoubleQuote;
} else if (nodeValue.charAt(nValueStart - 1) == cSingleQuote) {
cQuote = cSingleQuote;
}
if (cQuote != 32) {
int nValueEnd = nodeValue.indexOf(cQuote, nValueStart);
if (nValueEnd < 0) {
nValueEnd = nodeValue.length() - 1;
}
sNodeValue.replace(nValueStart, --nValueEnd + 1, optionValue);
bValueReplaced = true;
}
}
if (!bValueReplaced) {
if (sNodeValue.length() > 0) {
sNodeValue.append(' ');
}
sNodeValue.append(namePrefix);
sNodeValue.append(cDoubleQuote);
sNodeValue.append(optionValue);
sNodeValue.append(cDoubleQuote);
}
return sNodeValue.toString();
}
public XMLStorage() {
this(null, null);
}
public XMLStorage(File xmlFile) {
this(xmlFile, null);
}
public XMLStorage(URL url) {
this(null, url);
}
private XMLStorage(File xmlFile, URL url) {
this.moFileName = xmlFile;
this.mUrl = url;
this.mGeneratorOption = new Option("generator", "%s");
this.mAPIVersionOption = new Option("APIVersion", "%s");
this.mProcessXSLOption = new Option("processXSL", "%b");
this.mXSLOption = new Option("XSL", "%s");
this.mModelOption = new Option("Model", "%s");
this.mIncrementalOption = new Option("incrementalLoad", "none|forwardOnly");
this.mSetPIOption = new Option("setPI", "%s");
this.mXFAPIOption = new Option("XFAOption", "%s");
this.mFormatOption = new Option("format", "raw|simple|pretty");
this.mEncodingOption = new Option("encoding", "%s");
this.mIndentLevelOption = new Option("indentLevel", "%d");
this.mAttributeQuoteCharOption = new Option("attributeQuoteChar", "'|\"");
this.mEntityCharsOption = new Option("entityChars", "%s");
this.mMinEntityCharRangeOption = new Option("minEntityCharRange", "%d");
this.mMaxEntityCharRangeOption = new Option("maxEntityCharRange", "%d");
this.mXSLFileOption = new Option("XSLFile", "%s");
}
public String getAPIVersion() {
if (!this.mAPIVersionOption.isSet()) {
return "";
}
return this.mAPIVersionOption.getString();
}
public String getGenerator() {
if (!this.mGeneratorOption.isSet()) {
return "";
}
return this.mGeneratorOption.getString();
}
public Node loadModel(AppModel model, InputStream inputStream, String loadOptions, String saveXSLFile) {
return this.loadModel(model, inputStream, null, null, loadOptions, saveXSLFile);
}
public Node loadModel(AppModel model, InputStream inputStream, String source, String loadOptions, String saveXSLFile) {
return this.loadModel(model, inputStream, source, null, loadOptions, saveXSLFile);
}
public Node loadModel(AppModel model, File file, String loadOptions, String saveXSLFile) {
return this.loadModel(model, null, null, file, loadOptions, saveXSLFile);
}
private Node loadModel(AppModel appModel, InputStream is, String source, File file, String loadOptions, String saveXSLFile) {
this.setOptions(loadOptions, appModel);
appModel.getErrorList();
if (!StringUtils.isEmpty(saveXSLFile)) {
FileOutputStream oStreamFile = null;
try {
oStreamFile = new FileOutputStream(saveXSLFile);
String sContents = "<?xml version=\"1.0\" encoding=\"UTF-8\"\n?><xfa:xsltDebug xmlns:xfa=\"http://www.xfa.org/schema/xfa-xslt-debug/1.0/\"\n></xfa:xsltDebug\n>";
oStreamFile.write(sContents.getBytes("UTF-8"));
}
catch (IOException e) {
throw new ExFull(e);
}
finally {
if (oStreamFile != null) {
try {
oStreamFile.close();
}
catch (IOException ignore) {}
}
}
}
Document doc = appModel.getDocument().isDefaultDocument() ? appModel.getDocument() : Document.createDocument(appModel);
boolean bLazyLoading = false;
if (this.mIncrementalOption.isSet()) {
if (this.mIncrementalOption.getMatchingIndex() == 0) {
bLazyLoading = false;
} else if (this.mIncrementalOption.getMatchingIndex() == 1) {
bLazyLoading = true;
}
}
if (!bLazyLoading && (this.mXSLOption.isSet() || this.mXSLFileOption.isSet())) {
throw new ExFull(ResId.UNSUPPORTED_OPERATION, "XMLStorage#loadModel - XSL");
}
if (bLazyLoading) {
throw new ExFull(ResId.UNSUPPORTED_OPERATION);
}
try {
if (file != null) {
doc.load(file);
} else {
doc.load(is, source, null, false);
}
}
catch (ExFull e) {
appModel.addErrorList(e, 3, appModel);
}
Element startNode = null;
for (Node child = doc.getFirstXMLChild(); child != null; child = child.getNextXMLSibling()) {
if (child instanceof ProcessingInstruction && child.getName() == "xfa") {
this.setOptions(((ProcessingInstruction)child).getData(), appModel);
}
if (!(child instanceof Element)) continue;
startNode = (Element)child;
break;
}
if (startNode != null && this.mModelOption.isSet()) {
String sModelName = this.mModelOption.getString();
Node domPacket = startNode.getFirstXMLChild();
while (domPacket != null) {
String aPacketName = domPacket.getName();
Node nextSibling = domPacket.getNextXMLSibling();
List<ModelFactory> factories = appModel.factories();
for (int i = 0; i < factories.size(); ++i) {
ModelFactory factory = factories.get(i);
if (!factory.isRootName(aPacketName)) continue;
if (factory.isRootName(sModelName)) break;
domPacket.getXMLParent().removeChild(domPacket);
break;
}
domPacket = nextSibling;
}
}
doc.isDefaultDocument(false);
appModel.cleanDirtyFlags();
return appModel;
}
public Node loadModel(AppModel model, String loadOptions, String saveXSLFile) {
Node node;
if (this.moFileName != null) {
node = this.loadModel(model, null, null, this.moFileName, loadOptions, saveXSLFile);
} else {
if (this.mUrl != null) {
InputStream is = null;
try {
is = this.mUrl.openStream();
node = this.loadModel(model, is, this.mUrl.toString(), null, loadOptions, saveXSLFile);
}
catch (IOException ex) {
throw new ExFull(ex);
}
finally {
if (is != null) {
try {
is.close();
}
catch (IOException ignored) {}
}
}
}
throw new IllegalStateException();
}
return node;
}
public boolean loadXDP(AppModel appModel, InputStream file, PacketHandler handler, Object handlerData, boolean bProcessXFAOnly) {
Document doc = appModel.getDocument();
appModel.setPacketHandler(handler, handlerData);
doc.load(file, null, false);
return this.loadXDP(appModel, doc, null, (Object)null, bProcessXFAOnly);
}
public boolean loadXDP(AppModel oAppModel, Document oDoc, PacketHandler handler, Object handlerData, boolean bProcessXFAOnly) {
Node startNode = null;
for (Node oChild = oDoc.getFirstXMLChild(); oChild != null; oChild = oChild.getNextXMLSibling()) {
if (oChild instanceof ProcessingInstruction && ((ProcessingInstruction)oChild).getName() == "xfa") {
this.setOptions(((ProcessingInstruction)oChild).getData(), oAppModel);
continue;
}
if (!(oChild instanceof Element)) continue;
startNode = oChild;
break;
}
String uri = "";
String qname = "";
if (startNode instanceof Element) {
uri = ((Element)startNode).getNS();
qname = ((Element)startNode).getXMLName();
}
if (startNode == null || bProcessXFAOnly && !oAppModel.isXFANode(uri, startNode.getName(), qname)) {
return false;
}
if (handler != null) {
if (oAppModel.isXFANode(uri, startNode.getName(), qname)) {
Node oDomPacket = startNode.getFirstXMLChild();
while (oDomPacket != null) {
Node oNextSibling = oDomPacket.getNextXMLSibling();
if (oDomPacket instanceof Element) {
Element oPacket = (Element)oDomPacket;
handler.filterPackets(oPacket, handlerData);
}
oDomPacket = oNextSibling;
}
} else {
handler.filterPackets(startNode, handlerData);
}
}
return true;
}
public void processXSL(boolean process) {
throw new ExFull(ResId.UNSUPPORTED_OPERATION, "XMLStorage#processXSL");
}
public void saveAggregate(String sRoot, OutputStream outStream, NodeList oNodes, String saveOptions) {
this.setOptions(saveOptions, null);
this.mGeneratorOption.setValue(this.getGenerator(), false);
DOMSaveOptions oOptions = new DOMSaveOptions();
try {
AppModel oAppModel;
Model oModel;
if (oNodes.length() > 0 && !oOptions.getExcludePreamble()) {
oModel = ((Node)oNodes.item(0)).getModel();
oAppModel = null;
if (oModel != null) {
oAppModel = oModel.getAppModel();
}
if (oAppModel != null) {
Document doc = oAppModel.getDocument();
this.updateOptions(doc, oOptions);
doc.savePreamble(outStream, oOptions);
String xfaValue = XMLStorage.compactPIs("xfa", doc);
if (!StringUtils.isEmpty(xfaValue)) {
outStream.write(Document.MarkupPIStart);
outStream.write("xfa".getBytes("UTF-8"));
outStream.write(Document.MarkupSpace);
outStream.write(xfaValue.getBytes("UTF-8"));
outStream.write(Document.MarkupPIEnd);
outStream.write(Document.MarkupReturn);
}
}
}
oOptions.setExcludePreamble(true);
if (StringUtils.isEmpty(sRoot)) {
outStream.write("<xdp:xdp xmlns:xdp=\"http://ns.adobe.com/xdp/\"".getBytes("UTF-8"));
if (oNodes.length() > 0) {
oModel = ((Node)oNodes.item(0)).getModel();
oAppModel = null;
if (oModel != null) {
oAppModel = oModel.getAppModel();
}
if (oAppModel != null) {
String sAttrVal = oAppModel.getAttribute(XFA.TIMESTAMPTAG).toString();
if (sAttrVal.length() > 0) {
outStream.write(Document.MarkupSpace);
outStream.write("timeStamp".getBytes("UTF-8"));
outStream.write(Document.MarkupAttrMiddle);
outStream.write(sAttrVal.getBytes("UTF-8"));
outStream.write(Document.MarkupDQuoteString);
}
if ((sAttrVal = oAppModel.getAttribute(XFA.UUIDTAG).toString()).length() > 0) {
outStream.write(Document.MarkupSpace);
outStream.write("uuid".getBytes("UTF-8"));
outStream.write(Document.MarkupAttrMiddle);
outStream.write(sAttrVal.getBytes("UTF-8"));
outStream.write(Document.MarkupDQuoteString);
}
}
}
outStream.write(Document.MarkupEndTag);
outStream.write(Document.MarkupReturn);
} else {
outStream.write(Document.MarkupStartTag);
outStream.write(sRoot.getBytes("UTF-8"));
outStream.write(Document.MarkupEndTag);
outStream.write(Document.MarkupReturn);
}
for (int i = 0; i < oNodes.length(); ++i) {
Node oNode = (Node)oNodes.item(i);
Document oDoc = oNode.getOwnerDocument();
if (oNode instanceof Element) {
((Element)oNode).preSave(false);
}
if (oNode.getPreviousXMLSibling() == null) {
outStream.write(Document.MarkupReturn);
}
if (oDoc != null) {
oDoc.saveAs(outStream, oNode, oOptions);
}
if (!(oNode instanceof Model)) continue;
((Model)oNode).postSave();
}
if (StringUtils.isEmpty(sRoot)) {
outStream.write(Document.MarkupCloseTag);
outStream.write("xdp:xdp".getBytes("UTF-8"));
outStream.write(Document.MarkupEndTag);
outStream.write(Document.MarkupReturn);
} else {
outStream.write(Document.MarkupCloseTag);
outStream.write(sRoot.getBytes("UTF-8"));
outStream.write(Document.MarkupEndTag);
outStream.write(Document.MarkupReturn);
}
}
catch (IOException e) {
throw new ExFull(e);
}
}
public void saveModel(Model model, String saveOptions) {
try {
BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(this.moFileName));
this.saveModelAs(model, outputStream, saveOptions);
outputStream.close();
}
catch (IOException ex) {
throw new ExFull(ex);
}
}
public void saveModelAs(Model model, OutputStream file, String saveOptions) {
this.setOptions(saveOptions, model);
Document doc = model.getDocument();
DOMSaveOptions options = new DOMSaveOptions();
this.updateOptions(doc, options);
model.preSave(false);
doc.saveAs(file, null, options);
model.postSave();
}
private void setOptions(String optionString, Model model) {
String s = optionString.trim();
int cEquals = 61;
int cDoubleQuote = 34;
int cSingleQuote = 39;
int nOffset = 0;
do {
int nFirstQuoteFoundAt;
int nSecondQuoteFoundAt;
int nFoundAt;
if ((nFoundAt = s.indexOf(cEquals, nOffset)) == -1) {
if (nOffset == s.length()) break;
throw new ExFull(new MsgFormat(ResId.MalformedOptionException, optionString.substring(nOffset)));
}
String sName = s.substring(nOffset, nFoundAt).trim();
if (s.charAt(nFoundAt + 1) == '\"' || s.charAt(nFoundAt + 1) == '\'') {
nFirstQuoteFoundAt = nFoundAt + 1;
nSecondQuoteFoundAt = s.charAt(nFoundAt + 1) == '\"' ? s.indexOf(cDoubleQuote, nFirstQuoteFoundAt + 1) : s.indexOf(cSingleQuote, nFirstQuoteFoundAt + 1);
if (nSecondQuoteFoundAt == -1) {
throw new ExFull(new MsgFormat(ResId.MalformedOptionException, sName));
}
} else {
throw new ExFull(new MsgFormat(ResId.MalformedOptionException, sName));
}
String sValue = s.substring(nFirstQuoteFoundAt + 1, nSecondQuoteFoundAt);
nOffset = nSecondQuoteFoundAt + 1;
String sPackage = "xfd";
int nUnderscore = sName.indexOf(95);
if (nUnderscore != -1) {
sPackage = sName.substring(0, nUnderscore);
}
if (!sPackage.equals("xfd")) {
throw new ExFull(new MsgFormat(ResId.InvalidOptionException, sName));
}
this.setOption(sName, sValue, false);
if (this.mSetPIOption.isSet()) {
String optionValue = this.mSetPIOption.getString();
String[] options = optionValue.split(" ");
String optionName = options[0].intern();
Document doc = ((AppModel)model).getDocument();
XMLStorage.updateProcessingInstruction(doc, optionName, optionValue);
this.mSetPIOption.reset();
}
if (!this.mXFAPIOption.isSet()) continue;
Document doc = ((AppModel)model).getDocument();
StringBuilder xfaValue = new StringBuilder(XMLStorage.compactPIs("xfa", doc));
if (xfaValue.length() > 0) {
xfaValue.append(' ');
}
xfaValue.append(this.mXFAPIOption.getString());
XMLStorage.updateProcessingInstruction(doc, "xfa", xfaValue.toString());
this.mXFAPIOption.reset();
} while (true);
}
@Override
public void setOption(String optionName, String optionValue, boolean bCritical) {
Option[] optionArray = new Option[]{this.mGeneratorOption, this.mAPIVersionOption, this.mProcessXSLOption, this.mXSLOption, this.mModelOption, this.mIncrementalOption, this.mSetPIOption, this.mXFAPIOption, this.mFormatOption, this.mEncodingOption, this.mIndentLevelOption, this.mAttributeQuoteCharOption, this.mEntityCharsOption, this.mMinEntityCharRangeOption, this.mMaxEntityCharRangeOption, this.mXSLFileOption, null};
Option.setOptionByArray("xfd", optionArray, optionName, optionValue, bCritical);
}
private void updateOptions(Document doc, DOMSaveOptions oOptions) {
String generatorTag = "XFA2_4";
if (doc != null) {
Node node = doc.getDocumentElement();
if (node instanceof DataModel) {
node = ((DataModel)node).getDataRoot();
node = node.getFirstXMLChild();
}
if (node instanceof Element && node.getXMLName() == "jfxpf:XPF") {
generatorTag = "ff99v250_01";
}
this.mGeneratorOption.setValue(generatorTag, false);
String xfaValue = XMLStorage.compactPIs("xfa", doc);
xfaValue = XMLStorage.updateValue(xfaValue, "generator", generatorTag);
xfaValue = XMLStorage.updateValue(xfaValue, "APIVersion", Version.getImplementation());
XMLStorage.updateProcessingInstruction(doc, "xfa", xfaValue);
}
if (this.mFormatOption.isSet()) {
if (this.mFormatOption.getMatchingIndex() == 0) {
oOptions.setDisplayFormat(0);
} else if (this.mFormatOption.getMatchingIndex() == 2) {
oOptions.setDisplayFormat(2);
}
}
if (this.mIndentLevelOption.isSet()) {
oOptions.setIndentLevel(this.mIndentLevelOption.getInteger());
}
if (this.mAttributeQuoteCharOption.isSet() && this.mAttributeQuoteCharOption.getMatchingIndex() == 0) {
oOptions.setUseSingleQuoteAttr(true);
}
if (this.mEntityCharsOption.isSet()) {
oOptions.setEntityChars(this.mEntityCharsOption.getString());
}
if (this.mMinEntityCharRangeOption.isSet()) {
oOptions.setRangeMin((char)this.mMinEntityCharRangeOption.getInteger());
}
if (this.mMaxEntityCharRangeOption.isSet()) {
oOptions.setRangeMax((char)this.mMaxEntityCharRangeOption.getInteger());
}
}
public void XFAModelLoader(Model model, Node configKey, InputStream oStreamFile) {
throw new ExFull(ResId.UNSUPPORTED_OPERATION, "XMLStorage#XFAModelLoader");
}
}