CustomJSONWriter.java 2.41 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  org.apache.sling.commons.json.JSONException
 *  org.apache.sling.commons.json.io.JSONWriter
 */
package com.adobe.aemds.guide.utils;

import com.adobe.aemds.guide.service.GuideException;
import java.io.Writer;
import java.util.Stack;
import org.apache.sling.commons.json.JSONException;
import org.apache.sling.commons.json.io.JSONWriter;

public class CustomJSONWriter
extends JSONWriter {
    public Stack<String> objectStack = new Stack();

    public CustomJSONWriter(Writer w) {
        super(w);
    }

    public CustomJSONWriter array() {
        try {
            return (CustomJSONWriter)super.array();
        }
        catch (Exception e) {
            throw new GuideException(e);
        }
    }

    public CustomJSONWriter endArray() {
        try {
            return (CustomJSONWriter)super.endArray();
        }
        catch (Exception e) {
            throw new GuideException(e);
        }
    }

    public CustomJSONWriter endObject() {
        try {
            return (CustomJSONWriter)super.endObject();
        }
        catch (Exception e) {
            throw new GuideException(e);
        }
    }

    public CustomJSONWriter key(String s) {
        try {
            return (CustomJSONWriter)super.key(s);
        }
        catch (Exception e) {
            throw new GuideException(e);
        }
    }

    public CustomJSONWriter object() {
        try {
            return (CustomJSONWriter)super.object();
        }
        catch (Exception e) {
            throw new GuideException(e);
        }
    }

    public CustomJSONWriter value(boolean b) {
        try {
            return (CustomJSONWriter)super.value(b);
        }
        catch (Exception e) {
            throw new GuideException(e);
        }
    }

    public CustomJSONWriter value(double d) {
        try {
            return (CustomJSONWriter)super.value(d);
        }
        catch (Exception e) {
            throw new GuideException(e);
        }
    }

    public CustomJSONWriter value(long l) {
        try {
            return (CustomJSONWriter)super.value(l);
        }
        catch (Exception e) {
            throw new GuideException(e);
        }
    }

    public CustomJSONWriter value(Object o) {
        try {
            return (CustomJSONWriter)super.value(o);
        }
        catch (Exception e) {
            throw new GuideException(e);
        }
    }
}