当前位置: 首页>>代码示例>>C#>>正文


C# com.writeRaw方法代码示例

本文整理汇总了C#中com.writeRaw方法的典型用法代码示例。如果您正苦于以下问题:C# com.writeRaw方法的具体用法?C# com.writeRaw怎么用?C# com.writeRaw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com的用法示例。


在下文中一共展示了com.writeRaw方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: writeArrayValueSeparator

 // nothing special, since no indentation is added
 /// <summary>
 /// Method called after an array value has been completely
 /// output, and before another value is to be output.
 /// </summary>
 /// <remarks>
 /// Method called after an array value has been completely
 /// output, and before another value is to be output.
 /// <p>
 /// Default handling (without pretty-printing) will output a single
 /// comma to separate values.
 /// </remarks>
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/>
 public virtual void writeArrayValueSeparator(com.fasterxml.jackson.core.JsonGenerator
     jg)
 {
     jg.writeRaw(',');
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:19,代码来源:MinimalPrettyPrinter.cs

示例2: writeIndentation

 /// <exception cref="System.IO.IOException"/>
 public override void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg
     , int level)
 {
     jg.writeRaw(eol);
     if (level > 0)
     {
         // should we err on negative values (as there's some flaw?)
         level *= charsPerLevel;
         while (level > indents.Length)
         {
             // unlike to happen but just in case
             jg.writeRaw(indents, 0, indents.Length);
             level -= indents.Length;
         }
         jg.writeRaw(indents, 0, level);
     }
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:18,代码来源:DefaultIndenter.cs

示例3: writeStartArray

 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/>
 public virtual void writeStartArray(com.fasterxml.jackson.core.JsonGenerator jg)
 {
     jg.writeRaw('[');
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:6,代码来源:MinimalPrettyPrinter.cs

示例4: writeStartObject

 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/>
 public virtual void writeStartObject(com.fasterxml.jackson.core.JsonGenerator jg)
 {
     jg.writeRaw('{');
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:6,代码来源:MinimalPrettyPrinter.cs

示例5: writeRootValueSeparator

 /*
 /**********************************************************
 /* PrettyPrinter impl
 /**********************************************************
 */
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/>
 public virtual void writeRootValueSeparator(com.fasterxml.jackson.core.JsonGenerator
     jg)
 {
     if (_rootValueSeparator != null)
     {
         jg.writeRaw(_rootValueSeparator);
     }
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:15,代码来源:MinimalPrettyPrinter.cs

示例6: writeObjectFieldValueSeparator

 // nothing special, since no indentation is added
 /// <summary>
 /// Method called after an object field has been output, but
 /// before the value is output.
 /// </summary>
 /// <remarks>
 /// Method called after an object field has been output, but
 /// before the value is output.
 /// <p>
 /// Default handling will just output a single
 /// colon to separate the two, without additional spaces.
 /// </remarks>
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/>
 public virtual void writeObjectFieldValueSeparator(com.fasterxml.jackson.core.JsonGenerator
     jg)
 {
     jg.writeRaw(':');
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:19,代码来源:MinimalPrettyPrinter.cs

示例7: writeObjectEntrySeparator

 /// <summary>
 /// Method called after an object entry (field:value) has been completely
 /// output, and before another value is to be output.
 /// </summary>
 /// <remarks>
 /// Method called after an object entry (field:value) has been completely
 /// output, and before another value is to be output.
 /// <p>
 /// Default handling (without pretty-printing) will output a single
 /// comma to separate the two.
 /// </remarks>
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/>
 public virtual void writeObjectEntrySeparator(com.fasterxml.jackson.core.JsonGenerator
     jg)
 {
     jg.writeRaw(',');
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:18,代码来源:MinimalPrettyPrinter.cs

示例8: writeEndObject

 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/>
 public virtual void writeEndObject(com.fasterxml.jackson.core.JsonGenerator jg, int
     nrOfEntries)
 {
     jg.writeRaw('}');
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:7,代码来源:MinimalPrettyPrinter.cs

示例9: writeEndArray

 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/>
 public virtual void writeEndArray(com.fasterxml.jackson.core.JsonGenerator jg, int
     nrOfValues)
 {
     jg.writeRaw(']');
 }
开发者ID:davidraleigh,项目名称:jackson-parser-cs,代码行数:7,代码来源:MinimalPrettyPrinter.cs


注:本文中的com.writeRaw方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。