public class PBufUtilities extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PBUF_OPTION_INT32_HEADER
This option controls whether or not the marshaller/unmarshaller puts an
int32 at the front of the encoding for the length or expects the int32
when reading the stream.
|
static String |
PBUF_SERVICE_NAME
The name of the XmlService that uses PBuf as its encoding/decoding format
|
static String |
PBUF_STREAMING_OPTION
If using a streaming protocol and the PBUF_OPTION_INT32_HEADER is true
(the default value) then you must allow this option to be set and used
in all calls using the same underlying stream.
|
Constructor and Description |
---|
PBufUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
enablePBufService(ServiceLocator locator)
Idempotently enables the PBuf parser in the given ServiceLocator.
|
public static final String PBUF_SERVICE_NAME
public static final String PBUF_OPTION_INT32_HEADER
Boolean
.
By default this is true (an int32 is prepended for length when writing
and expected when reading). If this value is false then the InputStream
given to the unmarshaller must end when the protobuf endspublic static final String PBUF_STREAMING_OPTION
public static void enablePBufService(ServiceLocator locator)
locator
- The non-null locator to enable the XmlParserCopyright © 2009–2023 Oracle Corporation. All rights reserved.