public CharSequence format(Object target, int level, Converter converter) throws IOException { if (level == INSPECT && target instanceof InputStream) { return read(((InputStream) target)); } if (level == LINE && target instanceof Bundle) { return print((Bundle) target); } if (level == LINE && target instanceof ServiceReference) { return print((ServiceReference) target); } if (level == PART && target instanceof Bundle) { return ((Bundle) target).getSymbolicName(); } if (level == PART && target instanceof ServiceReference) { return getShortNames((String[]) ((ServiceReference) target).getProperty("objectclass")); } return null; }
public CharSequence format(Object target, int level, Converter converter) throws IOException { if (level == INSPECT && target instanceof InputStream) { return read(((InputStream) target)); } if (level == LINE && target instanceof Bundle) { return print((Bundle) target); } if (level == LINE && target instanceof ServiceReference) { return print((ServiceReference<?>) target); } if (level == PART && target instanceof Bundle) { return ((Bundle) target).getSymbolicName(); } if (level == PART && target instanceof ServiceReference) { return getShortNames((String[]) ((ServiceReference<?>) target).getProperty("objectclass")); } return null; }
public CharSequence format(Object target, int level, Converter converter) throws IOException { if (level == INSPECT && target instanceof InputStream) { return read(((InputStream) target)); } if (level == LINE && target instanceof Bundle) { return print((Bundle) target); } if (level == LINE && target instanceof ServiceReference) { return print((ServiceReference) target); } if (level == PART && target instanceof Bundle) { return ((Bundle) target).getSymbolicName(); } if (level == PART && target instanceof ServiceReference) { return getShortNames((String[]) ((ServiceReference) target).getProperty("objectclass")); } return null; }
public CharSequence format(Object target, int level, Converter converter) throws IOException { if (level == INSPECT && target instanceof InputStream) { return read(((InputStream) target)); } if (level == LINE && target instanceof Bundle) { return print((Bundle) target); } if (level == LINE && target instanceof ServiceReference) { return print((ServiceReference<?>) target); } if (level == PART && target instanceof Bundle) { return ((Bundle) target).getSymbolicName(); } if (level == PART && target instanceof ServiceReference) { return getShortNames((String[]) ((ServiceReference<?>) target).getProperty("objectclass")); } return null; }