// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.fasterxml.jackson.databind.deser.std; import com.fasterxml.jackson.core.Base64Variant; import com.fasterxml.jackson.core.Base64Variants; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonToken; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; import java.io.IOException; // Referenced classes of package com.fasterxml.jackson.databind.deser.std: // PrimitiveArrayDeserializers static final class extends PrimitiveArrayDeserializers { private static final long serialVersionUID = 1L; public volatile Object deserialize(JsonParser jsonparser, DeserializationContext deserializationcontext) throws IOException, JsonProcessingException { return deserialize(jsonparser, deserializationcontext); } public char[] deserialize(JsonParser jsonparser, DeserializationContext deserializationcontext) throws IOException { Object obj = jsonparser.getCurrentToken(); if (obj == JsonToken.VALUE_STRING) { deserializationcontext = jsonparser.getTextCharacters(); int i = jsonparser.getTextOffset(); int j = jsonparser.getTextLength(); jsonparser = new char[j]; System.arraycopy(deserializationcontext, i, jsonparser, 0, j); return jsonparser; } if (jsonparser.isExpectedStartArrayToken()) { obj = new StringBuilder(64); do { Object obj1 = jsonparser.nextToken(); if (obj1 != JsonToken.END_ARRAY) { if (obj1 != JsonToken.VALUE_STRING) { throw deserializationcontext.mappingException(Character.TYPE); } obj1 = jsonparser.getText(); if (((String) (obj1)).length() != 1) { throw JsonMappingException.from(jsonparser, (new StringBuilder()).append("Can not convert a JSON String of length ").append(((String) (obj1)).length()).append(" into a char element of char array").toString()); } ((StringBuilder) (obj)).append(((String) (obj1)).charAt(0)); } else { return ((StringBuilder) (obj)).toString().toCharArray(); } } while (true); } if (obj == JsonToken.VALUE_EMBEDDED_OBJECT) { jsonparser = ((JsonParser) (jsonparser.getEmbeddedObject())); if (jsonparser == null) { return null; } if (jsonparser instanceof char[]) { return (char[])(char[])jsonparser; } if (jsonparser instanceof String) { return ((String)jsonparser).toCharArray(); } if (jsonparser instanceof byte[]) { return Base64Variants.getDefaultVariant().encode((byte[])(byte[])jsonparser, false).toCharArray(); } } throw deserializationcontext.mappingException(_valueClass); } public () { super([C); } }