@Test public void testToJson() throws IOException { byte[] bite = new byte[1]; JsonNodeFactory jsonNodeFactory = new JsonNodeFactory(true); JsonNode jsonNode = binaryType.toJson(jsonNodeFactory, bite); assertTrue(Arrays.toString(jsonNode.binaryValue()).equals(Arrays.toString(bite))); }
@Override public JsonNode toJson(JsonNodeFactory factory, Object obj) { return factory.binaryNode((byte[]) cast(obj)); }
BinaryType implements Type, Serializable { @Override public JsonNode toJson(JsonNodeFactory factory, Object obj) { return factory.binaryNode((byte[]) cast(obj)); } }
BinaryType implements Type, Serializable { @Override public JsonNode toJson(JsonNodeFactory factory, Object obj) { return factory.binaryNode((byte[]) cast(obj)); } private  BinaryType(); }
BinaryType implements Type, Serializable { @Override public JsonNode toJson(JsonNodeFactory factory, Object obj) { return factory.binaryNode((byte[]) cast(obj)); } private  BinaryType(); @Override String getName(); @Override boolean supportsEq(); @Override boolean supportsOrdering(); @Override int compare(Object v1, Object v2); @Override Object cast(Object obj); @Override JsonNode toJson(JsonNodeFactory factory, Object obj); @Override Object fromJson(JsonNode node); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
BinaryType implements Type, Serializable { @Override public JsonNode toJson(JsonNodeFactory factory, Object obj) { return factory.binaryNode((byte[]) cast(obj)); } private  BinaryType(); @Override String getName(); @Override boolean supportsEq(); @Override boolean supportsOrdering(); @Override int compare(Object v1, Object v2); @Override Object cast(Object obj); @Override JsonNode toJson(JsonNodeFactory factory, Object obj); @Override Object fromJson(JsonNode node); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final Type TYPE; static final String NAME; }