Created a default writeString(reader, int) implementation that reports unsupported so that the new method doesn't have to be implemented in all formats right away.
package com.fasterxml.jackson.core.base;
-import java.io.*;
-import java.math.BigDecimal;
-
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.json.DupDetector;
import com.fasterxml.jackson.core.json.JsonWriteContext;
import com.fasterxml.jackson.core.json.PackageVersion;
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.Reader;
+import java.math.BigDecimal;
+
/**
* This base class implements part of API that a JSON generator exposes
* to applications, adds shared internal methods that sub-classes
@@ -339,6 +341,12 @@ public abstract class GeneratorBase extends JsonGenerator
return 0;
}
+ @Override
+ public void writeString(Reader reader, int len) throws IOException {
+ // Let's implement this as "unsupported" to make it easier to add new parser impls
+ _reportUnsupportedOperation();
+ }
+
/*
/**********************************************************
/* Public API, write methods, primitive
