Tabnine Logo
ObjectReadContext
Code IndexAdd Tabnine to your IDE (free)

How to use
ObjectReadContext
in
com.fasterxml.jackson.core

Best Java code snippets using com.fasterxml.jackson.core.ObjectReadContext (Showing top 20 results out of 315)

origin: FasterXML/jackson-core

@Override
protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt,
    InputStream in) throws IOException {
  return new ByteSourceJsonBootstrapper(ioCtxt, in)
      .constructParser(readCtxt,
          readCtxt.getStreamReadFeatures(_streamReadFeatures),
          readCtxt.getFormatReadFeatures(_formatReadFeatures),
          _byteSymbolCanonicalizer, _rootCharSymbols, _factoryFeatures);
}
origin: FasterXML/jackson-core

/**
 * @deprecated Since 3.0 use {@link #createParser(ObjectReadContext,char[])}
 */
@Deprecated
public JsonParser createParser(char[] content) throws IOException {
  return createParser(ObjectReadContext.empty(), content, 0, content.length);
}
origin: FasterXML/jackson-core

default JsonParser createParser(byte[] content) throws IOException {
  return getParserFactory().createParser(this, content);
}
origin: FasterXML/jackson-dataformats-text

@Override
protected YAMLParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt,
    char[] data, int offset, int len,
    boolean recyclable) throws IOException {
  return new YAMLParser(readCtxt, ioCtxt, _getBufferRecycler(),
      readCtxt.getStreamReadFeatures(_streamReadFeatures),
      new CharArrayReader(data, offset, len));
}
origin: FasterXML/jackson-dataformats-binary

@Override
protected ProtobufParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt,
    byte[] data, int offset, int len) throws IOException
{
  return new ProtobufParser(readCtxt, ioCtxt,
      readCtxt.getStreamReadFeatures(_streamReadFeatures),
      (ProtobufSchema) readCtxt.getSchema(),
      null, data, offset, len, false);
}
origin: FasterXML/jackson-dataformats-text

private final JavaPropsSchema _getSchema(ObjectReadContext readCtxt) {
  FormatSchema sch = readCtxt.getSchema();
  if (sch == null) {
    return JavaPropsParser.DEFAULT_SCHEMA;
  }
  return (JavaPropsSchema) sch;
}

origin: FasterXML/jackson-dataformats-text

@Override
protected YAMLParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt,
    Reader r) throws IOException {
  return new YAMLParser(readCtxt, ioCtxt,
      _getBufferRecycler(), 
      readCtxt.getStreamReadFeatures(_streamReadFeatures),
      r);
}
origin: FasterXML/jackson-dataformats-binary

@Override
protected ProtobufParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt,
    InputStream in) throws IOException
{
  byte[] buf = ioCtxt.allocReadIOBuffer();
  return new ProtobufParser(readCtxt, ioCtxt,
      readCtxt.getStreamReadFeatures(_streamReadFeatures),
      (ProtobufSchema) readCtxt.getSchema(),
      in, buf, 0, 0, true);
}
origin: FasterXML/jackson-dataformats-text

private final CsvSchema _getSchema(ObjectReadContext readCtxt) {
  FormatSchema sch = readCtxt.getSchema();
  if (sch == null) {
    return DEFAULT_SCHEMA;
  }
  return (CsvSchema) sch;
}

origin: FasterXML/jackson-core

@Override
protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt,
    Reader r) throws IOException {
  return new ReaderBasedJsonParser(readCtxt, ioCtxt,
      readCtxt.getStreamReadFeatures(_streamReadFeatures),
      readCtxt.getFormatReadFeatures(_formatReadFeatures),
      r,
      _rootCharSymbols.makeChild(_factoryFeatures));
}
origin: FasterXML/jackson-dataformats-binary

public IonParser createParser(ObjectReadContext readCtxt, IonReader in) {
  return new IonParser(readCtxt, _createContext(in, false),
      readCtxt.getStreamReadFeatures(_streamReadFeatures),
      in, _system);
}
origin: FasterXML/jackson-core

/**
 * @deprecated Since 3.0 use {@link #createParser(ObjectReadContext,java.net.URL)}
 */
@Deprecated
public JsonParser createParser(URL src) throws IOException {
  return createParser(ObjectReadContext.empty(), src);
}
origin: FasterXML/jackson-core

default JsonParser createParser(byte[] content, int offset, int length) throws IOException {
  return getParserFactory().createParser(this, content, offset, length);
}

origin: FasterXML/jackson-core

@Override
protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt,
    byte[] data, int offset, int len) throws IOException
{
  return new ByteSourceJsonBootstrapper(ioCtxt, data, offset, len)
      .constructParser(readCtxt,
          readCtxt.getStreamReadFeatures(_streamReadFeatures),
          readCtxt.getFormatReadFeatures(_formatReadFeatures),
          _byteSymbolCanonicalizer, _rootCharSymbols, _factoryFeatures);
}
origin: FasterXML/jackson-dataformats-binary

private JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, InputStream in)
  throws IOException
{
  IonReader ion = _system.newReader(in);
  return new IonParser(readCtxt, ioCtxt,
      readCtxt.getStreamReadFeatures(_streamReadFeatures),
      ion, _system);
}
origin: FasterXML/jackson-core

/**
 * @deprecated Since 3.0 use {@link #createParser(ObjectReadContext,String)}
 */
@Deprecated
public JsonParser createParser(String content) throws IOException {
  return createParser(ObjectReadContext.empty(), content);
}
origin: FasterXML/jackson-core

default JsonParser createParser(InputStream in) throws IOException {
  return getParserFactory().createParser(this, in);
}
origin: FasterXML/jackson-core

@Override
protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt,
    char[] data, int offset, int len,
    boolean recyclable) throws IOException {
  return new ReaderBasedJsonParser(readCtxt, ioCtxt,
      readCtxt.getStreamReadFeatures(_streamReadFeatures),
      readCtxt.getFormatReadFeatures(_formatReadFeatures),
      null,
      _rootCharSymbols.makeChild(_factoryFeatures),
      data, offset, offset+len, recyclable);
}
origin: FasterXML/jackson-dataformats-binary

private JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, Reader r)
  throws IOException
{
  return new IonParser(readCtxt, ioCtxt,
      readCtxt.getStreamReadFeatures(_streamReadFeatures),
      _system.newReader(r), _system);
}
origin: FasterXML/jackson-core

/**
 * @deprecated Since 3.0 use {@link #createParser(ObjectReadContext,java.io.File)}
 */
@Deprecated
public JsonParser createParser(File src) throws IOException {
  return createParser(ObjectReadContext.empty(), src);
}
com.fasterxml.jackson.coreObjectReadContext

Javadoc

Defines API for accessing configuration and state exposed by higher level databind functionality during read (token stream to Object deserialization) process. Access is mostly needed during construction of JsonParser instances by TokenStreamFactory.

Most used methods

  • getStreamReadFeatures
  • getFormatReadFeatures
  • getSchema
  • empty
  • getParserFactory
  • readTree
  • readValue

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BoxLayout (javax.swing)
  • JOptionPane (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best IntelliJ plugins
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