本文整理汇总了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(',');
}
示例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);
}
}
示例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('[');
}
示例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('{');
}
示例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);
}
}
示例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(':');
}
示例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(',');
}
示例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('}');
}
示例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(']');
}