* <p>Based on the each node, the node type is also written to the stream, that helps in reconstructing the object,
* while reading.
*/
-class NeonSR2NormalizedNodeOutputStreamWriter extends AbstractLithiumDataOutput {
+final class NeonSR2NormalizedNodeOutputStreamWriter extends AbstractLithiumDataOutput {
private final Map<AugmentationIdentifier, Integer> aidCodeMap = new HashMap<>();
private final Map<QNameModule, Integer> moduleCodeMap = new HashMap<>();
private final Map<QName, Integer> qnameCodeMap = new HashMap<>();
}
@Override
- protected short streamVersion() {
+ short streamVersion() {
return TokenTypes.NEON_SR2_VERSION;
}
@Override
- public final void writeQName(final QName qname) throws IOException {
+ void writeQNameInternal(final QName qname) throws IOException {
final Integer value = qnameCodeMap.get(qname);
if (value == null) {
// Fresh QName, remember it and emit as three strings
// Fresh AugmentationIdentifier, remember it and emit as three strings
aidCodeMap.put(aid, aidCodeMap.size());
writeByte(TokenTypes.IS_AUGMENT_VALUE);
- super.writeAugmentationIdentifier(aid);
+ defaultWriteAugmentationIdentifier(aid);
} else {
// We have already seen this AugmentationIdentifier: write its code
writeByte(TokenTypes.IS_AUGMENT_CODE);