if (c == COLLECTION_BEGIN)
insideCollection++;
else if (c == COLLECTION_END) {
if (!isCharPresent(c, iRecordSeparator)) {
if (insideCollection == 0)
throw new OSerializationException("Found invalid " + COLLECTION_END
+ " character. Assure to open and close correctly.");
insideCollection--;
}
} else if (c == PARENTHESIS_BEGIN) {
insideParenthesis++;
} else if (c == PARENTHESIS_END) {
if (!isCharPresent(c, iRecordSeparator)) {
if (insideParenthesis == 0)
throw new OSerializationException("Found invalid " + PARENTHESIS_END
+ " character. Assure to open and close correctly.");
insideParenthesis--;
}
} else if (c == MAP_BEGIN) {
insideMap++;
} else if (c == MAP_END) {
if (!isCharPresent(c, iRecordSeparator)) {
if (insideMap == 0)
throw new OSerializationException("Found invalid " + MAP_END + " character. Assure to open and close correctly.");
insideMap--;
}
}
else if (c == LINK)