gpt4 book ai didi

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

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

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

WriterBasedJsonGenerator.isEnabled介绍

暂无

代码示例

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

@Override
public void flush() throws IOException
{
  _flushBuffer();
  if (_writer != null) {
    if (isEnabled(Feature.FLUSH_PASSED_TO_STREAM)) {
      _writer.flush();
    }
  }
}

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

@Override
public void flush() throws IOException
{
  _flushBuffer();
  if (_writer != null) {
    if (isEnabled(StreamWriteFeature.FLUSH_PASSED_TO_STREAM)) {
      _writer.flush();
    }
  }
}

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

@Override
public void writeNumber(double d) throws IOException
{
  if (_cfgNumbersAsStrings ||
    // [JACKSON-139]
      (isEnabled(Feature.QUOTE_NON_NUMERIC_NUMBERS) && ((Double.isNaN(d) || Double.isInfinite(d))))) {
    writeString(String.valueOf(d));
    return;
  }
  // What is the max length for doubles? 40 chars?
  _verifyValueWrite(WRITE_NUMBER);
  writeRaw(String.valueOf(d));
}

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

@Override
public void writeNumber(float f) throws IOException
{
  if (_cfgNumbersAsStrings ||
    // [JACKSON-139]
      (isEnabled(Feature.QUOTE_NON_NUMERIC_NUMBERS) && ((Float.isNaN(f) || Float.isInfinite(f))))) {
    writeString(String.valueOf(f));
    return;
  }
  // What is the max length for floats?
  _verifyValueWrite(WRITE_NUMBER);
  writeRaw(String.valueOf(f));
}

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

&& isEnabled(Feature.AUTO_CLOSE_JSON_CONTENT)) {
while (true) {
  JsonStreamContext ctxt = getOutputContext();
if (_ioContext.isResourceManaged() || isEnabled(Feature.AUTO_CLOSE_TARGET)) {
  _writer.close();
} else  if (isEnabled(Feature.FLUSH_PASSED_TO_STREAM)) {

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

&& isEnabled(StreamWriteFeature.AUTO_CLOSE_CONTENT)) {
while (true) {
  TokenStreamContext ctxt = getOutputContext();
if (_ioContext.isResourceManaged() || isEnabled(StreamWriteFeature.AUTO_CLOSE_TARGET)) {
  _writer.close();
} else  if (isEnabled(StreamWriteFeature.FLUSH_PASSED_TO_STREAM)) {

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

@Override
public void flush() throws IOException
{
  _flushBuffer();
  if (_writer != null) {
    if (isEnabled(Feature.FLUSH_PASSED_TO_STREAM)) {
      _writer.flush();
    }
  }
}

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

@Override
public void flush() throws IOException
{
  _flushBuffer();
  if (_writer != null) {
    if (isEnabled(Feature.FLUSH_PASSED_TO_STREAM)) {
      _writer.flush();
    }
  }
}

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

@Override
public void flush()
  throws IOException
{
  _flushBuffer();
  if (_writer != null) {
    if (isEnabled(Feature.FLUSH_PASSED_TO_STREAM)) {
      _writer.flush();
    }
  }
}

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

@Override
public final void flush()
  throws IOException
{
  _flushBuffer();
  if (_writer != null) {
    if (isEnabled(Feature.FLUSH_PASSED_TO_STREAM)) {
      _writer.flush();
    }
  }
}

代码示例来源:origin: hstaudacher/osgi-jax-rs-connector

@Override
public void flush() throws IOException
{
  _flushBuffer();
  if (_writer != null) {
    if (isEnabled(Feature.FLUSH_PASSED_TO_STREAM)) {
      _writer.flush();
    }
  }
}

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

@Override
public void flush() throws IOException
{
  _flushBuffer();
  if (_writer != null) {
    if (isEnabled(Feature.FLUSH_PASSED_TO_STREAM)) {
      _writer.flush();
    }
  }
}

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

@Override
public void writeNumber(float f) throws IOException
{
  if (_cfgNumbersAsStrings ||
    // [JACKSON-139]
      (isEnabled(Feature.QUOTE_NON_NUMERIC_NUMBERS) && ((Float.isNaN(f) || Float.isInfinite(f))))) {
    writeString(String.valueOf(f));
    return;
  }
  // What is the max length for floats?
  _verifyValueWrite("write number");
  writeRaw(String.valueOf(f));
}

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

@Override
public void writeNumber(float f) throws IOException
{
  if (_cfgNumbersAsStrings ||
    // [JACKSON-139]
      (isEnabled(Feature.QUOTE_NON_NUMERIC_NUMBERS) && ((Float.isNaN(f) || Float.isInfinite(f))))) {
    writeString(String.valueOf(f));
    return;
  }
  // What is the max length for floats?
  _verifyValueWrite(WRITE_NUMBER);
  writeRaw(String.valueOf(f));
}

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

@Override
public void writeNumber(double d) throws IOException
{
  if (_cfgNumbersAsStrings ||
    // [JACKSON-139]
      (isEnabled(Feature.QUOTE_NON_NUMERIC_NUMBERS) && ((Double.isNaN(d) || Double.isInfinite(d))))) {
    writeString(String.valueOf(d));
    return;
  }
  // What is the max length for doubles? 40 chars?
  _verifyValueWrite("write number");
  writeRaw(String.valueOf(d));
}

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

@Override
public void writeNumber(double d) throws IOException
{
  if (_cfgNumbersAsStrings ||
    // [JACKSON-139]
      (isEnabled(Feature.QUOTE_NON_NUMERIC_NUMBERS) && ((Double.isNaN(d) || Double.isInfinite(d))))) {
    writeString(String.valueOf(d));
    return;
  }
  // What is the max length for doubles? 40 chars?
  _verifyValueWrite(WRITE_NUMBER);
  writeRaw(String.valueOf(d));
}

代码示例来源:origin: hstaudacher/osgi-jax-rs-connector

@Override
public void writeNumber(double d) throws IOException
{
  if (_cfgNumbersAsStrings ||
    // [JACKSON-139]
      (isEnabled(Feature.QUOTE_NON_NUMERIC_NUMBERS) && ((Double.isNaN(d) || Double.isInfinite(d))))) {
    writeString(String.valueOf(d));
    return;
  }
  // What is the max length for doubles? 40 chars?
  _verifyValueWrite("write number");
  writeRaw(String.valueOf(d));
}

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

@Override
public void writeNumber(double d) throws IOException
{
  if (_cfgNumbersAsStrings ||
    // [JACKSON-139]
      (isEnabled(Feature.QUOTE_NON_NUMERIC_NUMBERS) && ((Double.isNaN(d) || Double.isInfinite(d))))) {
    writeString(String.valueOf(d));
    return;
  }
  // What is the max length for doubles? 40 chars?
  _verifyValueWrite(WRITE_NUMBER);
  writeRaw(String.valueOf(d));
}

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

@Override
public void writeNumber(float f) throws IOException
{
  if (_cfgNumbersAsStrings ||
    // [JACKSON-139]
      (isEnabled(Feature.QUOTE_NON_NUMERIC_NUMBERS) && ((Float.isNaN(f) || Float.isInfinite(f))))) {
    writeString(String.valueOf(f));
    return;
  }
  // What is the max length for floats?
  _verifyValueWrite(WRITE_NUMBER);
  writeRaw(String.valueOf(f));
}

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

public WriterBasedJsonGenerator(IOContext ctxt, int features, ObjectCodec codec,
    Writer w)
{
  super(features, codec);
  _ioContext = ctxt;
  _writer = w;
  _outputBuffer = ctxt.allocConcatBuffer();
  _outputEnd = _outputBuffer.length;
  if (isEnabled(Feature.ESCAPE_NON_ASCII)) {
    setHighestNonEscapedChar(127);
  }
}

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