expose streamReadConstraints() on TokenStreamFactory
@@ -144,6 +144,21 @@ public abstract class TokenStreamFactory
public abstract int getFormatParserFeatures();
public abstract int getFormatGeneratorFeatures();
+ /*
+ /**********************************************************************
+ /* Constraints violation checking (2.15)
+ /**********************************************************************
+ */
+
+ /**
+ * Get the constraints to apply when performing streaming reads.
+ *
+ * @since 2.15
+ */
+ public StreamReadConstraints streamReadConstraints() {
+ return _streamReadConstraints == null ? StreamReadConstraints.defaults() : _streamReadConstraints;
+ }
+
/*
/**********************************************************************
/* Factory methods, parsers
