本文整理了Java中org.eclipse.jetty.util.ajax.JSON.appendMap()
方法的一些代码示例,展示了JSON.appendMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSON.appendMap()
方法的具体详情如下:
包路径:org.eclipse.jetty.util.ajax.JSON
类名称:JSON
方法名:appendMap
暂无
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public static String toString(Map object)
{
StringBuilder buffer = new StringBuilder(DEFAULT.getStringBufferSize());
DEFAULT.appendMap(buffer,object);
return buffer.toString();
}
代码示例来源:origin: org.eclipse.jetty/jetty-util-ajax
public static String toString(Map object)
{
StringBuilder buffer = new StringBuilder(DEFAULT.getStringBufferSize());
DEFAULT.appendMap(buffer,object);
return buffer.toString();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
public static String toString(Map object)
{
StringBuilder buffer = new StringBuilder(DEFAULT.getStringBufferSize());
DEFAULT.appendMap(buffer,object);
return buffer.toString();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
public static String toString(Map object)
{
StringBuilder buffer = new StringBuilder(DEFAULT.getStringBufferSize());
DEFAULT.appendMap(buffer,object);
return buffer.toString();
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
public static String toString(Map object)
{
StringBuilder buffer = new StringBuilder(DEFAULT.getStringBufferSize());
DEFAULT.appendMap(buffer,object);
return buffer.toString();
}
代码示例来源:origin: org.eclipse.jetty/jetty-util-ajax
public void appendMap(Appendable buffer, Map<?,?> map)
{
try
{
if (map == null)
{
appendNull(buffer);
return;
}
buffer.append('{');
Iterator<?> iter = map.entrySet().iterator();
while (iter.hasNext())
{
Map.Entry<?,?> entry = (Map.Entry<?,?>)iter.next();
quotedEscape(buffer, entry.getKey().toString());
buffer.append(':');
append(buffer,entry.getValue());
if (iter.hasNext())
buffer.append(',');
}
buffer.append('}');
}
catch (IOException e)
{
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public void appendMap(Appendable buffer, Map<?,?> map)
{
try
{
if (map == null)
{
appendNull(buffer);
return;
}
buffer.append('{');
Iterator<?> iter = map.entrySet().iterator();
while (iter.hasNext())
{
Map.Entry<?,?> entry = (Map.Entry<?,?>)iter.next();
QuotedStringTokenizer.quote(buffer,entry.getKey().toString());
buffer.append(':');
append(buffer,entry.getValue());
if (iter.hasNext())
buffer.append(',');
}
buffer.append('}');
}
catch (IOException e)
{
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
public void appendMap(Appendable buffer, Map<?,?> map)
{
try
{
if (map == null)
{
appendNull(buffer);
return;
}
buffer.append('{');
Iterator<?> iter = map.entrySet().iterator();
while (iter.hasNext())
{
Map.Entry<?,?> entry = (Map.Entry<?,?>)iter.next();
QuotedStringTokenizer.quote(buffer,entry.getKey().toString());
buffer.append(':');
append(buffer,entry.getValue());
if (iter.hasNext())
buffer.append(',');
}
buffer.append('}');
}
catch (IOException e)
{
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
public void appendMap(Appendable buffer, Map<?,?> map)
{
try
{
if (map == null)
{
appendNull(buffer);
return;
}
buffer.append('{');
Iterator<?> iter = map.entrySet().iterator();
while (iter.hasNext())
{
Map.Entry<?,?> entry = (Map.Entry<?,?>)iter.next();
QuotedStringTokenizer.quote(buffer,entry.getKey().toString());
buffer.append(':');
append(buffer,entry.getValue());
if (iter.hasNext())
buffer.append(',');
}
buffer.append('}');
}
catch (IOException e)
{
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
public void appendMap(Appendable buffer, Map<?,?> map)
{
try
{
if (map == null)
{
appendNull(buffer);
return;
}
buffer.append('{');
Iterator<?> iter = map.entrySet().iterator();
while (iter.hasNext())
{
Map.Entry<?,?> entry = (Map.Entry<?,?>)iter.next();
QuotedStringTokenizer.quote(buffer,entry.getKey().toString());
buffer.append(':');
append(buffer,entry.getValue());
if (iter.hasNext())
buffer.append(',');
}
buffer.append('}');
}
catch (IOException e)
{
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
appendMap(buffer,(Map)object);
代码示例来源:origin: org.eclipse.jetty/jetty-util-ajax
appendMap(buffer,(Map)object);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
appendMap(buffer,(Map)object);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
appendMap(buffer,(Map)object);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
appendMap(buffer,(Map)object);
内容来源于网络,如有侵权,请联系作者删除!