gpt4 book ai didi

com.fasterxml.jackson.core.json.WriterBasedJsonGenerator._reportError()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 03:03:05 26 4
gpt4 key购买 nike

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

WriterBasedJsonGenerator._reportError介绍

暂无

代码示例

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

@Override
public void writeFieldName(String name)  throws IOException
{
  int status = _writeContext.writeFieldName(name);
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

代码示例来源:origin: FasterXML/jackson-core

@Override
public void writeFieldName(String name)  throws IOException
{
  int status = _outputContext.writeFieldName(name);
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

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

@Override
public void writeFieldName(SerializableString name) throws IOException
{
  // Object is a value, need to verify it's allowed
  int status = _writeContext.writeFieldName(name.getValue());
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

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

_verifyValueWrite(WRITE_STRING);
if (reader == null) {
  _reportError("null reader");
  _reportError("Didn't read enough from reader");

代码示例来源:origin: FasterXML/jackson-core

@Override
public void writeFieldName(SerializableString name) throws IOException
{
  // Object is a value, need to verify it's allowed
  int status = _outputContext.writeFieldName(name.getValue());
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

代码示例来源:origin: FasterXML/jackson-core

_verifyValueWrite(WRITE_STRING);
if (reader == null) {
  _reportError("null reader");
  _reportError("Didn't read enough from reader");

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

@Override
public void writeEndArray() throws IOException
{
  if (!_writeContext.inArray()) {
    _reportError("Current context not Array but "+_writeContext.typeDesc());
  }
  if (_cfgPrettyPrinter != null) {
    _cfgPrettyPrinter.writeEndArray(this, _writeContext.getEntryCount());
  } else {
    if (_outputTail >= _outputEnd) {
      _flushBuffer();
    }
    _outputBuffer[_outputTail++] = ']';
  }
  _writeContext = _writeContext.clearAndGetParent();
}

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

@Override
public void writeEndObject() throws IOException
{
  if (!_writeContext.inObject()) {
    _reportError("Current context not Object but "+_writeContext.typeDesc());
  }
  if (_cfgPrettyPrinter != null) {
    _cfgPrettyPrinter.writeEndObject(this, _writeContext.getEntryCount());
  } else {
    if (_outputTail >= _outputEnd) {
      _flushBuffer();
    }
    _outputBuffer[_outputTail++] = '}';
  }
  _writeContext = _writeContext.clearAndGetParent();
}

代码示例来源:origin: FasterXML/jackson-core

@Override
public void writeEndArray() throws IOException
{
  if (!_outputContext.inArray()) {
    _reportError("Current context not Array but "+_outputContext.typeDesc());
  }
  if (_cfgPrettyPrinter != null) {
    _cfgPrettyPrinter.writeEndArray(this, _outputContext.getEntryCount());
  } else {
    if (_outputTail >= _outputEnd) {
      _flushBuffer();
    }
    _outputBuffer[_outputTail++] = ']';
  }
  _outputContext = _outputContext.clearAndGetParent();
}

代码示例来源:origin: FasterXML/jackson-core

@Override
public void writeEndObject() throws IOException
{
  if (!_outputContext.inObject()) {
    _reportError("Current context not Object but "+_outputContext.typeDesc());
  }
  if (_cfgPrettyPrinter != null) {
    _cfgPrettyPrinter.writeEndObject(this, _outputContext.getEntryCount());
  } else {
    if (_outputTail >= _outputEnd) {
      _flushBuffer();
    }
    _outputBuffer[_outputTail++] = '}';
  }
  _outputContext = _outputContext.clearAndGetParent();
}

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

int missing = _writeBinary(b64variant, data, encodingBuffer, dataLength);
if (missing > 0) {
  _reportError("Too few bytes available: missing "+missing+" bytes (out of "+dataLength+")");

代码示例来源:origin: FasterXML/jackson-core

int missing = _writeBinary(b64variant, data, encodingBuffer, dataLength);
if (missing > 0) {
  _reportError("Too few bytes available: missing "+missing+" bytes (out of "+dataLength+")");

代码示例来源:origin: Nextdoor/bender

@Override
public void writeFieldName(String name)  throws IOException
{
  int status = _writeContext.writeFieldName(name);
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public void writeFieldName(String name)  throws IOException, JsonGenerationException
{
  int status = _writeContext.writeFieldName(name);
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
public void writeFieldName(String name)  throws IOException
{
  int status = _writeContext.writeFieldName(name);
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all

@Override
public void writeFieldName(String name)  throws IOException
{
  int status = _writeContext.writeFieldName(name);
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

代码示例来源:origin: com.fasterxml.jackson.core/com.springsource.com.fasterxml.jackson.core.jackson-core

@Override
public final void writeFieldName(String name)  throws IOException, JsonGenerationException
{
  int status = _writeContext.writeFieldName(name);
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

代码示例来源:origin: Nextdoor/bender

@Override
public void writeFieldName(SerializableString name) throws IOException
{
  // Object is a value, need to verify it's allowed
  int status = _writeContext.writeFieldName(name.getValue());
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all

@Override
public void writeFieldName(SerializableString name) throws IOException
{
  // Object is a value, need to verify it's allowed
  int status = _writeContext.writeFieldName(name.getValue());
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

代码示例来源:origin: com.fasterxml.jackson.core/com.springsource.com.fasterxml.jackson.core.jackson-core

@Override
public final void writeFieldName(SerializableString name)
  throws IOException, JsonGenerationException
{
  // Object is a value, need to verify it's allowed
  int status = _writeContext.writeFieldName(name.getValue());
  if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
    _reportError("Can not write a field name, expecting a value");
  }
  _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com