aQute.lib.json.Handler类的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(163)

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

Handler介绍

暂无

代码示例

代码示例来源:origin: biz.aQute.bnd/bndlib

void encode(Encoder app, Object object, Type type, Map<Object,Type> visited) throws Exception {
  // Get the null out of the way
  if (object == null) {
    app.append("null");
    return;
  }
  // If we have no type or the type is Object.class
  // we take the type of the object itself. Normally types
  // come from declaration sites (returns, fields, methods, etc)
  // and contain generic info.
  if (type == null || type == Object.class)
    type = object.getClass();
  // Dispatch to the handler who knows how to handle the given type.
  Handler h = getHandler(type, object.getClass());
  h.encode(app, object, visited);
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

return h.decodeObject(isr);
  return h.decodeArray(isr);
  return h.decode(isr, string);
  return h.decode(isr);
  return h.decode(isr, Boolean.TRUE);
  return h.decode(isr, Boolean.FALSE);
case '9' :
case '-' :
  return h.decode(isr, parseNumber(isr));

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

if (!(keyType == null || keyType == Object.class)) {
  Handler h = r.codec.getHandler(keyType, null);
  key = h.decode(r, (String) key);

代码示例来源:origin: biz.aQute.bnd/bndlib

return h.decodeObject(isr);
  return h.decodeArray(isr);
  return h.decode(isr, string);
  return h.decode(isr);
  return h.decode(isr,Boolean.TRUE);
  return h.decode(isr,Boolean.FALSE);
case '9' :
case '-' :
  return h.decode(isr,parseNumber(isr));

代码示例来源:origin: org.osgi/osgi.enroute.configurer.simple.provider

if (!(keyType == null || keyType == Object.class)) {
  Handler h = r.codec.getHandler(keyType, null);
  key = h.decode(r, (String) key);

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

return h.decodeObject(isr);
  return h.decodeArray(isr);
  return h.decode(isr, string);
  return h.decode(isr);
  return h.decode(isr, Boolean.TRUE);
  return h.decode(isr, Boolean.FALSE);
case '9' :
case '-' :
  return h.decode(isr, parseNumber(isr));

代码示例来源:origin: biz.aQute.bnd/bnd

void encode(Encoder app, Object object, Type type, Map<Object,Type> visited) throws Exception {
  // Get the null out of the way
  if (object == null) {
    app.append("null");
    return;
  }
  // If we have no type or the type is Object.class
  // we take the type of the object itself. Normally types
  // come from declaration sites (returns, fields, methods, etc)
  // and contain generic info.
  if (type == null || type == Object.class)
    type = object.getClass();
  // Dispatch to the handler who knows how to handle the given type.
  Handler h = getHandler(type, object.getClass());
  h.encode(app, object, visited);
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

if (!(keyType == null || keyType == Object.class)) {
  Handler h = r.codec.getHandler(keyType, null);
  key = h.decode(r, (String) key);

代码示例来源:origin: biz.aQute.bnd/bnd

return h.decodeObject(isr);
  return h.decodeArray(isr);
  return h.decode(isr, string);
  return h.decode(isr);
  return h.decode(isr,Boolean.TRUE);
  return h.decode(isr,Boolean.FALSE);
case '9' :
case '-' :
  return h.decode(isr,parseNumber(isr));

代码示例来源:origin: org.osgi/osgi.enroute.jsonrpc.simple.provider

void encode(Encoder app, Object object, Type type, Map<Object,Type> visited) throws Exception {
  // Get the null out of the way
  if (object == null) {
    app.append("null");
    return;
  }
  // If we have no type or the type is Object.class
  // we take the type of the object itself. Normally types
  // come from declaration sites (returns, fields, methods, etc)
  // and contain generic info.
  if (type == null || type == Object.class)
    type = object.getClass();
  // Dispatch to the handler who knows how to handle the given type.
  Handler h = getHandler(type, object.getClass());
  h.encode(app, object, visited);
}

代码示例来源:origin: biz.aQute.bnd/bndlib

if (!(keyType == null || keyType == Object.class)) {
  Handler h = r.codec.getHandler(keyType, null);
  key = h.decode(r,(String) key);

代码示例来源:origin: org.osgi/osgi.enroute.jsonrpc.simple.provider

return h.decodeObject(isr);
  return h.decodeArray(isr);
  return h.decode(isr, string);
  return h.decode(isr);
  return h.decode(isr, Boolean.TRUE);
  return h.decode(isr, Boolean.FALSE);
case '9' :
case '-' :
  return h.decode(isr, parseNumber(isr));

代码示例来源:origin: org.osgi/osgi.enroute.configurer.simple.provider

void encode(Encoder app, Object object, Type type, Map<Object, Type> visited) throws Exception {
  // Get the null out of the way
  if (object == null) {
    app.append("null");
    return;
  }
  // If we have no type or the type is Object.class
  // we take the type of the object itself. Normally types
  // come from declaration sites (returns, fields, methods, etc)
  // and contain generic info.
  if (type == null || type == Object.class)
    type = object.getClass();
  // Dispatch to the handler who knows how to handle the given type.
  Handler h = getHandler(type, object.getClass());
  h.encode(app, object, visited);
}

代码示例来源:origin: biz.aQute.bnd/bnd

if (!(keyType == null || keyType == Object.class)) {
  Handler h = r.codec.getHandler(keyType, null);
  key = h.decode(r,(String) key);

代码示例来源:origin: org.osgi/osgi.enroute.rest.simple.provider

return h.decodeObject(isr);
  return h.decodeArray(isr);
  return h.decode(isr, string);
  return h.decode(isr);
  return h.decode(isr, Boolean.TRUE);
  return h.decode(isr, Boolean.FALSE);
case '9' :
case '-' :
  return h.decode(isr, parseNumber(isr));

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

void encode(Encoder app, Object object, Type type, Map<Object, Type> visited) throws Exception {
  // Get the null out of the way
  if (object == null) {
    app.append("null");
    return;
  }
  // If we have no type or the type is Object.class
  // we take the type of the object itself. Normally types
  // come from declaration sites (returns, fields, methods, etc)
  // and contain generic info.
  if (type == null || type == Object.class)
    type = object.getClass();
  // Dispatch to the handler who knows how to handle the given type.
  Handler h = getHandler(type, object.getClass());
  h.encode(app, object, visited);
}

代码示例来源:origin: org.osgi/osgi.enroute.rest.simple.provider

if (!(keyType == null || keyType == Object.class)) {
  Handler h = r.codec.getHandler(keyType, null);
  key = h.decode(r,(String) key);

代码示例来源:origin: org.osgi/osgi.enroute.dtos.bndlib.provider

return h.decodeObject(isr);
  return h.decodeArray(isr);
  return h.decode(isr, string);
  return h.decode(isr);
  return h.decode(isr, Boolean.TRUE);
  return h.decode(isr, Boolean.FALSE);
case '9' :
case '-' :
  return h.decode(isr, parseNumber(isr));

代码示例来源:origin: org.osgi/osgi.enroute.easse.simple.adapter

void encode(Encoder app, Object object, Type type, Map<Object,Type> visited) throws Exception {
  // Get the null out of the way
  if (object == null) {
    app.append("null");
    return;
  }
  // If we have no type or the type is Object.class
  // we take the type of the object itself. Normally types
  // come from declaration sites (returns, fields, methods, etc)
  // and contain generic info.
  if (type == null || type == Object.class)
    type = object.getClass();
  // Dispatch to the handler who knows how to handle the given type.
  Handler h = getHandler(type, object.getClass());
  h.encode(app, object, visited);
}

代码示例来源:origin: org.osgi/osgi.enroute.dtos.bndlib.provider

if (!(keyType == null || keyType == Object.class)) {
  Handler h = r.codec.getHandler(keyType, null);
  key = h.decode(r,(String) key);

相关文章