@Test void testCanSerializeToStringByteArrayAndInputStream() { assertTrue(testSubject.canSerializeTo(byte[].class)); assertTrue(testSubject.canSerializeTo(String.class)); assertTrue(testSubject.canSerializeTo(InputStream.class)); }
@Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return JsonNode.class.equals(expectedRepresentation) || String.class.equals(expectedRepresentation) || converter.canConvert(byte[].class, expectedRepresentation); }
JacksonSerializer implements Serializer { @Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return JsonNode.class.equals(expectedRepresentation) || String.class.equals(expectedRepresentation) || converter.canConvert(byte[].class, expectedRepresentation); } }
JacksonSerializer implements Serializer { @Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return JsonNode.class.equals(expectedRepresentation) || String.class.equals(expectedRepresentation) || converter.canConvert(byte[].class, expectedRepresentation); } protected  JacksonSerializer(Builder builder); }
JacksonSerializer implements Serializer { @Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return JsonNode.class.equals(expectedRepresentation) || String.class.equals(expectedRepresentation) || converter.canConvert(byte[].class, expectedRepresentation); } protected  JacksonSerializer(Builder builder); static Builder builder(); static JacksonSerializer defaultSerializer(); @Override SerializedObject<T> serialize(Object object, Class<T> expectedRepresentation); final ObjectMapper getObjectMapper(); @Override boolean canSerializeTo(Class<T> expectedRepresentation); @Override T deserialize(SerializedObject<S> serializedObject); @Override Class classForType(SerializedType type); @Override SerializedType typeForClass(Class type); @Override Converter getConverter(); }
JacksonSerializer implements Serializer { @Override public <T> boolean canSerializeTo(Class<T> expectedRepresentation) { return JsonNode.class.equals(expectedRepresentation) || String.class.equals(expectedRepresentation) || converter.canConvert(byte[].class, expectedRepresentation); } protected  JacksonSerializer(Builder builder); static Builder builder(); static JacksonSerializer defaultSerializer(); @Override SerializedObject<T> serialize(Object object, Class<T> expectedRepresentation); final ObjectMapper getObjectMapper(); @Override boolean canSerializeTo(Class<T> expectedRepresentation); @Override T deserialize(SerializedObject<S> serializedObject); @Override Class classForType(SerializedType type); @Override SerializedType typeForClass(Class type); @Override Converter getConverter();  }