public final class ProtocolUtils
extends java.lang.Object
Constructor and Description |
---|
ProtocolUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
detectJsonEncoding(java.io.InputStream inputStream)
Reads inputStream (from request) and detects incoming JSON encoding.
|
public static java.lang.String detectJsonEncoding(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- Input Stream from requestjava.io.IOException
- Exception while parsing JSON