protected final void _writeFieldName(String name, boolean commaBefore) throws IOException { if (_cfgPrettyPrinter != null) { _writePPFieldName(name, commaBefore); return; } // for fast+std case, need to output up to 2 chars, comma, dquote if ((_outputTail + 1) >= _outputEnd) { _flushBuffer(); } if (commaBefore) { _outputBuffer[_outputTail++] = ','; } // Alternate mode, in which quoting of field names disabled? if (_cfgUnqNames) { _writeString(name); return; } // we know there's room for at least one more char _outputBuffer[_outputTail++] = _quoteChar; // The beef: _writeString(name); // and closing quotes; need room for one more char: if (_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = _quoteChar; }
protected final void _writeFieldName(SerializableString name, boolean commaBefore) throws IOException _writePPFieldName(name, commaBefore); return;
protected final void _writeFieldName(String name, boolean commaBefore) throws IOException { if (_cfgPrettyPrinter != null) { _writePPFieldName(name, commaBefore); return; } // for fast+std case, need to output up to 2 chars, comma, dquote if ((_outputTail + 1) >= _outputEnd) { _flushBuffer(); } if (commaBefore) { _outputBuffer[_outputTail++] = ','; } // Alternate mode, in which quoting of field names disabled? if (_cfgUnqNames) { _writeString(name); return; } // we know there's room for at least one more char _outputBuffer[_outputTail++] = _quoteChar; // The beef: _writeString(name); // and closing quotes; need room for one more char: if (_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = _quoteChar; }
protected final void _writeFieldName(SerializableString name, boolean commaBefore) throws IOException _writePPFieldName(name, commaBefore); return;
protected final void _writeFieldName(String name, boolean commaBefore) throws IOException { if (_cfgPrettyPrinter != null) { _writePPFieldName(name, commaBefore); return; } // for fast+std case, need to output up to 2 chars, comma, dquote if ((_outputTail + 1) >= _outputEnd) { _flushBuffer(); } if (commaBefore) { _outputBuffer[_outputTail++] = ','; } // Alternate mode, in which quoting of field names disabled? if (_cfgUnqNames) { _writeString(name); return; } // we know there's room for at least one more char _outputBuffer[_outputTail++] = _quoteChar; // The beef: _writeString(name); // and closing quotes; need room for one more char: if (_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = _quoteChar; }
protected final void _writeFieldName(SerializableString name, boolean commaBefore) throws IOException _writePPFieldName(name, commaBefore); return;
protected void _writeFieldName(SerializableString name, boolean commaBefore) throws IOException _writePPFieldName(name, commaBefore); return;
protected void _writeFieldName(String name, boolean commaBefore) throws IOException { if (_cfgPrettyPrinter != null) { _writePPFieldName(name, commaBefore); return; } // for fast+std case, need to output up to 2 chars, comma, dquote if ((_outputTail + 1) >= _outputEnd) { _flushBuffer(); } if (commaBefore) { _outputBuffer[_outputTail++] = ','; } // Alternate mode, in which quoting of field names disabled? if (_cfgUnqNames) { _writeString(name); return; } // we know there's room for at least one more char _outputBuffer[_outputTail++] = _quoteChar; // The beef: _writeString(name); // and closing quotes; need room for one more char: if (_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = _quoteChar; }
protected void _writeFieldName(SerializableString name, boolean commaBefore) throws IOException _writePPFieldName(name, commaBefore); return;
protected void _writeFieldName(SerializableString name, boolean commaBefore) throws IOException _writePPFieldName(name, commaBefore); return;
protected void _writeFieldName(String name, boolean commaBefore) throws IOException { if (_cfgPrettyPrinter != null) { _writePPFieldName(name, commaBefore); return; } // for fast+std case, need to output up to 2 chars, comma, dquote if ((_outputTail + 1) >= _outputEnd) { _flushBuffer(); } if (commaBefore) { _outputBuffer[_outputTail++] = ','; } /* To support [JACKSON-46], we'll do this: * (Question: should quoting of spaces (etc) still be enabled?) */ if (!isEnabled(Feature.QUOTE_FIELD_NAMES)) { _writeString(name); return; } // we know there's room for at least one more char _outputBuffer[_outputTail++] = '"'; // The beef: _writeString(name); // and closing quotes; need room for one more char: if (_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = '"'; }
_writePPFieldName(name, commaBefore); return;
_writePPFieldName(name, commaBefore); return;
protected void _writeFieldName(String name, boolean commaBefore) throws IOException { if (_cfgPrettyPrinter != null) { _writePPFieldName(name, commaBefore); return; } // for fast+std case, need to output up to 2 chars, comma, dquote if ((_outputTail + 1) >= _outputEnd) { _flushBuffer(); } if (commaBefore) { _outputBuffer[_outputTail++] = ','; } /* To support [JACKSON-46], we'll do this: * (Question: should quoting of spaces (etc) still be enabled?) */ if (!isEnabled(Feature.QUOTE_FIELD_NAMES)) { _writeString(name); return; } // we know there's room for at least one more char _outputBuffer[_outputTail++] = '"'; // The beef: _writeString(name); // and closing quotes; need room for one more char: if (_outputTail >= _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = '"'; }
_writePPFieldName(name, commaBefore); return;
_writePPFieldName(name, commaBefore); return;