@Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return converter.canConvert(byte[].class, expectedRepresentation); }
@Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return converter.canConvert(byte[].class, expectedRepresentation); }
@Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return JsonNode.class.equals(expectedRepresentation) || String.class.equals(expectedRepresentation) || converter.canConvert(byte[].class, expectedRepresentation); }
/** * Indicates whether the given {@code desiredFormat} is supported as a representation for this type. More * specifically, it will consult the serializer that returned this instance whether it has a converter to convert * the serialized object's data to the desired type * * @param desiredFormat the format in which the serialized object is desired * @param <T> the format in which the serialized object is desired * @return {@code true} if the format is supported, otherwise {@code false} */ public <T> boolean supportsFormat(Class<T> desiredFormat) { return serializer.getConverter().canConvert(serializedObject.getContentType(), desiredFormat); }
@Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return converter.canConvert(byte[].class, expectedRepresentation); }
@Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return converter.canConvert(byte[].class, expectedRepresentation); }
@Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return converter.canConvert(byte[].class, expectedRepresentation); }
@Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return converter.canConvert(byte[].class, expectedRepresentation); }
@Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return JsonNode.class.equals(expectedRepresentation) || String.class.equals(expectedRepresentation) || converter.canConvert(byte[].class, expectedRepresentation); }
@Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return JsonNode.class.equals(expectedRepresentation) || String.class.equals(expectedRepresentation) || converter.canConvert(byte[].class, expectedRepresentation); }
/** * Indicates whether the given {@code desiredFormat} is supported as a representation for this type. More * specifically, it will consult the serializer that returned this instance whether it has a converter to convert * the serialized object's data to the desired type * * @param desiredFormat the format in which the serialized object is desired * @param <T> the format in which the serialized object is desired * @return {@code true} if the format is supported, otherwise {@code false} */ public <T> boolean supportsFormat(Class<T> desiredFormat) { return serializer.getConverter().canConvert(serializedObject.getContentType(), desiredFormat); }