com.ibm.portal.streaming.json
Interface JsonContentHandlerEx
- All Superinterfaces:
- JsonContentHandler
- All Known Subinterfaces:
- DefaultJsonContentHandler
-
public interface JsonContentHandlerEx
- extends JsonContentHandler
- Since:
- 8.0
Method Summary
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Notifies the handler about a processing instruction |
Methods inherited from interface com.ibm.portal.streaming.json.JsonContentHandler
|
endArray, endBoolean, endDocument, endMember, endNull, endNumber, endObject, endString, startArray, startBoolean, startDocument, startMember, startNull, startNumber, startObject, startString, value, value, value, value |
PI_DISABLE_OUTPUT_ESCAPING
static final java.lang.String PI_DISABLE_OUTPUT_ESCAPING
- Processing instruction that disables the escaping of JSON values. Use
with caution since this might result in incorrectly formed JSON data
streams. If output escaping is disabled, the JsonContentHandler.startString() and
JsonContentHandler.endString() methods do NOT write the string delimited, but
simply announce the start or stop of a string. Any further calls to one
of the value methods write the characters directly as is, without
additional escaping.
- Since:
- 8.0
- See Also:
- Constant Field Values
PI_ENABLE_OUTPUT_ESCAPING
static final java.lang.String PI_ENABLE_OUTPUT_ESCAPING
- Processing instruction that enables the escaping of JSON values. This is
the default. If output escaping is enabled, the JsonContentHandler.startString()
and JsonContentHandler.endString() methods write the string delimited and any calls
to one of the value methods write the content of the string. If the
content contains characters that need to be escaped according to the JSON
spec, this is done automatically.
- Since:
- 8.0
- See Also:
- Constant Field Values
processingInstruction
void processingInstruction(java.lang.String target,
java.lang.String data)
throws java.io.IOException
- Notifies the handler about a processing instruction
- Parameters:
- target - the processing instruction target
- data - the processing instruction data, or null if none
was supplied. The data does not include any whitespace
separating it from the target
- Throws:
- java.io.IOException
- Since:
- 8.0
- See Also:
- ContentHandler#processingInstruction(String, String)},
PI_DISABLE_OUTPUT_ESCAPING,
PI_DISABLE_OUTPUT_ESCAPING