2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the terms of the Eclipse
5 * Public License v1.0 which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.data.codec.gson;
10 import com.google.gson.stream.JsonWriter;
11 import java.io.IOException;
13 final class JSONEmptyCodec implements JSONCodec<Object> {
15 static final JSONEmptyCodec INSTANCE = new JSONEmptyCodec();
17 private JSONEmptyCodec() {
22 public Object deserialize(final String input) {
27 public String serialize(final Object input) {
32 public boolean needQuotes() {
37 public void serializeToWriter(final JsonWriter writer, final Object value) throws IOException {
39 writer.value((String) null);