Deprecated
as a consequence of StdScalarSerializer being deprecated. See corresponding docs for further information.
JsonSerializer to output java.util.UUID s.
Beyond optimized access and writing of textual representation (which
is the default handling in most cases), it will alternatively
allow serialization using raw binary output (as 16-byte block)
if underlying data format has efficient means to access that.
| Modifier and Type | Field and Description |
|---|---|
| protected final Boolean | _asBinary
Configuration setting that indicates if serialization as binary
(native or Base64-encoded) has been forced; |
| pack-priv static final char[] |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static final void | |
| private static void | |
| private static final byte[] | |
| protected boolean | |
| public void | acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType
Type of element (entity like property) being visited typeHint)Overrides com. Implements com. |
| public JsonSerializer | createContextual(SerializerProvider
Serializer provider to use for accessing config, other serializers serializers, BeanProperty Method or field that represents the property
(and is used to access value to serialize).
Should be available; but there may be cases where caller cannot provide it and
null is passed instead (in which case impls usually pass 'this' serializer as is) property)Implements com. |
| public boolean | isEmpty(SerializerProvider prov, UUID value)
Overrides com. |
| public void | serialize(UUID
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content gen, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. provider)Implements abstract com. |
| _asBinary | back to summary |
|---|---|
| protected final Boolean _asBinary Configuration setting that indicates if serialization as binary
(native or Base64-encoded) has been forced;
| |
| HEX_CHARS | back to summary |
|---|---|
| pack-priv static final char[] HEX_CHARS | |
| UUIDSerializer | back to summary |
|---|---|
| public UUIDSerializer() | |
| UUIDSerializer | back to summary |
|---|---|
protected UUIDSerializer(Boolean asBinary)
| |
| _appendInt | back to summary |
|---|---|
| private static void _appendInt(int bits, char[] ch, int offset) | |
| _appendInt | back to summary |
|---|---|
| private static final void _appendInt(int value, byte[] buffer, int offset) | |
| _appendShort | back to summary |
|---|---|
| private static void _appendShort(int bits, char[] ch, int offset) | |
| _asBytes | back to summary |
|---|---|
| private static final byte[] _asBytes(UUID uuid) | |
| _writeAsBinary | back to summary |
|---|---|
| protected boolean _writeAsBinary(JsonGenerator g) | |
| acceptJsonFormatVisitor | back to summary |
|---|---|
| public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException Overrides com. Implements com. Doc from com. Default implementation specifies no format. This behavior is usually overriden by custom serializers.
| |
| createContextual | back to summary |
|---|---|
| public JsonSerializer Implements com. Doc from com. Method called to see if a different (or differently configured) serializer is needed to serialize values of specified property. Note that instance that this method is called on is typically shared one and as a result method should NOT modify this instance but rather construct and return a new instance. This instance should only be returned as-is, in case it is already suitable for use.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty(SerializerProvider prov, UUID value) Overrides com. Doc from com. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). Default implementation will consider only null values to be empty. Note replaces
| |
| serialize | back to summary |
|---|---|
| public void serialize(UUID value, JsonGenerator gen, SerializerProvider provider) throws IOException Implements abstract com. Doc from com. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |