Implement #103, binary-data capability introspection
diff --git a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java
index 08be96e..02de2b0 100644
--- a/src/main/java/com/fasterxml/jackson/core/JsonFactory.java
+++ b/src/main/java/com/fasterxml/jackson/core/JsonFactory.java
@@ -355,7 +355,23 @@
public boolean requiresPropertyOrdering() {
return false;
}
-
+
+ /**
+ * Introspection method that higher-level functionality may call
+ * to see whether underlying data format can read and write binary
+ * data natively; that is, embeded it as-is without using encodings
+ * such as Base64.
+ *<p>
+ * Default implementation returns <code>false</code> as JSON does not
+ * support native access: all binary content must use Base64 encoding.
+ * Most binary formats (like Smile and Avro) support native binary content.
+ *
+ * @since 2.3
+ */
+ public boolean canHandleBinaryNatively(FormatSchema schema) {
+ return false;
+ }
+
/*
/**********************************************************
/* Format detection functionality (since 1.8)