Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mortbay.cometd
Class JSON.Literal

    java.lang.Object
      org.mortbay.cometd.JSON.Literal

All Implemented Interfaces:
  JSON.Generator

Enclosing class:
  JSON

    public static class JSON.Literal

extends Object
implements JSON.Generator

A Literal JSON generator A utility instance of `JSON.Generator` that holds a pre-generated string on JSON text.

Constructor Summary
`JSON.Literal(String json)` Construct a literal JSON instance for use by `JSON.toString(Object)`.

Method Summary
`void` | `addJSON(StringBuffer buffer)`
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### JSON.Literal

    public JSON.Literal(String json)

  Construct a literal JSON instance for use by `JSON.toString(Object)`.

  Parameters:
    `json` - A literal JSON string that will be parsed to check validity.

Method Detail

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### addJSON

    public void addJSON(StringBuffer buffer)

  Specified by:
    `addJSON` in interface `JSON.Generator`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 Mort Bay Consulting. All Rights Reserved.