Tabnine Logo
StringDeserializer._deserializeFromArray
Code IndexAdd Tabnine to your IDE (free)

How to use
_deserializeFromArray
method
in
com.fasterxml.jackson.databind.deser.std.StringDeserializer

Best Java code snippets using com.fasterxml.jackson.databind.deser.std.StringDeserializer._deserializeFromArray (Showing top 3 results out of 315)

origin: redisson/redisson

return _deserializeFromArray(p, ctxt);
origin: Nextdoor/bender

@Override
public String deserialize(JsonParser p, DeserializationContext ctxt) throws IOException
{
  if (p.hasToken(JsonToken.VALUE_STRING)) {
    return p.getText();
  }
  JsonToken t = p.getCurrentToken();
  // [databind#381]
  if (t == JsonToken.START_ARRAY) {
    return _deserializeFromArray(p, ctxt);
  }
  // need to gracefully handle byte[] data, as base64
  if (t == JsonToken.VALUE_EMBEDDED_OBJECT) {
    Object ob = p.getEmbeddedObject();
    if (ob == null) {
      return null;
    }
    if (ob instanceof byte[]) {
      return ctxt.getBase64Variant().encode((byte[]) ob, false);
    }
    // otherwise, try conversion using toString()...
    return ob.toString();
  }
  // allow coercions for other scalar types
  String text = p.getValueAsString();
  if (text != null) {
    return text;
  }
  return (String) ctxt.handleUnexpectedToken(_valueClass, p);
}
origin: com.jwebmp.jackson.core/jackson-databind

return _deserializeFromArray(p, ctxt);
com.fasterxml.jackson.databind.deser.stdStringDeserializer_deserializeFromArray

Popular methods of StringDeserializer

  • deserialize
  • <init>
  • _parseString
  • getNullValue
  • handleMissingEndArrayForSingle

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JPanel (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now