*/
package org.opendaylight.yangtools.yang.data.codec.gson;
+import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.io.Writer;
-
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+
/**
* A recursion level of {@link JSONNormalizedNodeStreamWriter}, which represents
* a JSON object which has to be prefixed with its identifier -- such as a
}
@Override
- protected void emitStart(final SchemaContext schema, final Writer writer) throws IOException {
- writeJsonIdentifier(schema, writer, getQName());
+ protected void emitStart(final SchemaContext schema, final JsonWriter writer) throws IOException {
+ writeMyJsonIdentifier(schema, writer, getQName());
super.emitStart(schema, writer);
}
-}
\ No newline at end of file
+}