Revision 5311
Added by daigle about 14 years ago
DBSAXNode.java | ||
---|---|---|
144 | 144 |
// write a series of nodes that are MAXDATACHARS long, and then the |
145 | 145 |
// final node contains the remainder |
146 | 146 |
while (moredata) { |
147 |
if (leftover > DBSAXHandler.MAXDATACHARS) {
|
|
147 |
if (leftover > (DBSAXHandler.MAXDATACHARS)) {
|
|
148 | 148 |
limitedData = data.substring(offset, DBSAXHandler.MAXDATACHARS); |
149 |
leftover -= DBSAXHandler.MAXDATACHARS;
|
|
150 |
offset += DBSAXHandler.MAXDATACHARS;
|
|
149 |
leftover -= (DBSAXHandler.MAXDATACHARS - 1);
|
|
150 |
offset += (DBSAXHandler.MAXDATACHARS - 1);
|
|
151 | 151 |
} else { |
152 |
limitedData = data; |
|
153 |
moredata = false; |
|
152 |
if (data != null) { |
|
153 |
limitedData = data.substring(offset, offset + leftover); |
|
154 |
} else { |
|
155 |
limitedData = null; |
|
156 |
} |
|
157 |
moredata = false; |
|
154 | 158 |
} |
155 |
endNodeId = writeChildNodeToDBDataLimited(nodetype, nodename, |
|
156 |
limitedData, docid);
|
|
159 |
|
|
160 |
endNodeId = writeChildNodeToDBDataLimited(nodetype, nodename, limitedData, docid);
|
|
157 | 161 |
} |
158 | 162 |
|
159 | 163 |
return endNodeId; |
Also available in: Unified diff
Merge 1.9.2 changes back into the trunk