com.fasterxml.jackson.dataformat.yaml.YAMLFactory._createParser()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中com.fasterxml.jackson.dataformat.yaml.YAMLFactory._createParser()方法的一些代码示例,展示了YAMLFactory._createParser()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAMLFactory._createParser()方法的具体详情如下:
包路径:com.fasterxml.jackson.dataformat.yaml.YAMLFactory
类名称:YAMLFactory
方法名:_createParser

YAMLFactory._createParser介绍

暂无

代码示例

代码示例来源:origin: redisson/redisson

@Override
public YAMLParser createParser(byte[] data, int offset, int len) throws IOException
{
  IOContext ctxt = _createContext(data, true);
  if (_inputDecorator != null) {
    InputStream in = _inputDecorator.decorate(ctxt, data, offset, len);
    if (in != null) {
      return _createParser(in, ctxt);
    }
  }
  return _createParser(data, offset, len, ctxt);
}

代码示例来源:origin: redisson/redisson

@Override
public YAMLParser createParser(byte[] data) throws IOException
{
  IOContext ctxt = _createContext(data, true);
  if (_inputDecorator != null) {
    InputStream in = _inputDecorator.decorate(ctxt, data, 0, data.length);
    if (in != null) {
      return _createParser(in, ctxt);
    }
  }
  return _createParser(data, 0, data.length, ctxt);
}

代码示例来源:origin: com.fasterxml.jackson.dataformat/jackson-dataformat-yaml

@Override
public YAMLParser createParser(byte[] data) throws IOException
{
  IOContext ctxt = _createContext(data, true);
  if (_inputDecorator != null) {
    InputStream in = _inputDecorator.decorate(ctxt, data, 0, data.length);
    if (in != null) {
      return _createParser(in, ctxt);
    }
  }
  return _createParser(data, 0, data.length, ctxt);
}

代码示例来源:origin: redisson/redisson

@Override
public YAMLParser createParser(File f) throws IOException {
  IOContext ctxt = _createContext(f, true);
  return _createParser(_decorate(new FileInputStream(f), ctxt), ctxt);
}

代码示例来源:origin: com.fasterxml.jackson.dataformat/jackson-dataformat-yaml

@Override
public YAMLParser createParser(byte[] data, int offset, int len) throws IOException
{
  IOContext ctxt = _createContext(data, true);
  if (_inputDecorator != null) {
    InputStream in = _inputDecorator.decorate(ctxt, data, offset, len);
    if (in != null) {
      return _createParser(in, ctxt);
    }
  }
  return _createParser(data, offset, len, ctxt);
}

代码示例来源:origin: redisson/redisson

@Override
public YAMLParser createParser(InputStream in) throws IOException
{
  IOContext ctxt = _createContext(in, false);
  return _createParser(_decorate(in, ctxt), ctxt);
}

代码示例来源:origin: redisson/redisson

@Override
public YAMLParser createParser(Reader r) throws IOException
{
  IOContext ctxt = _createContext(r, false);
  return _createParser(_decorate(r, ctxt), ctxt);
}

代码示例来源:origin: com.fasterxml.jackson.dataformat/jackson-dataformat-yaml

@Override
public YAMLParser createParser(File f) throws IOException {
  IOContext ctxt = _createContext(f, true);
  return _createParser(_decorate(new FileInputStream(f), ctxt), ctxt);
}

代码示例来源:origin: redisson/redisson

@Override
public YAMLParser createParser(URL url) throws IOException
{
  IOContext ctxt = _createContext(url, true);
  return _createParser(_decorate(_optimizedStreamFromURL(url), ctxt), ctxt);
}

代码示例来源:origin: com.fasterxml.jackson.dataformat/jackson-dataformat-yaml

@Override
public YAMLParser createParser(InputStream in) throws IOException
{
  IOContext ctxt = _createContext(in, false);
  return _createParser(_decorate(in, ctxt), ctxt);
}

代码示例来源:origin: com.fasterxml.jackson.dataformat/jackson-dataformat-yaml

@Override
public YAMLParser createParser(Reader r) throws IOException
{
  IOContext ctxt = _createContext(r, false);
  return _createParser(_decorate(r, ctxt), ctxt);
}

代码示例来源:origin: com.fasterxml.jackson.dataformat/jackson-dataformat-yaml

@Override
public YAMLParser createParser(URL url) throws IOException
{
  IOContext ctxt = _createContext(url, true);
  return _createParser(_decorate(_optimizedStreamFromURL(url), ctxt), ctxt);
}

相关文章