Use local copy of latest bndlib code for pre-release testing purposes
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1347815 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/aQute/lib/json/Handler.java b/bundleplugin/src/main/java/aQute/lib/json/Handler.java
new file mode 100644
index 0000000..18957e8
--- /dev/null
+++ b/bundleplugin/src/main/java/aQute/lib/json/Handler.java
@@ -0,0 +1,35 @@
+package aQute.lib.json;
+
+import java.io.*;
+import java.lang.reflect.*;
+import java.util.*;
+
+abstract class Handler {
+ abstract void encode(Encoder app, Object object, Map<Object, Type> visited)
+ throws IOException, Exception;
+
+ Object decodeObject(Decoder isr) throws Exception {
+ throw new UnsupportedOperationException("Cannot be mapped to object " + this);
+ }
+
+ Object decodeArray(Decoder isr) throws Exception {
+ throw new UnsupportedOperationException("Cannot be mapped to array " + this);
+ }
+
+ Object decode(String s) throws Exception {
+ throw new UnsupportedOperationException("Cannot be mapped to string " + this);
+ }
+
+ Object decode(Number s) throws Exception {
+ throw new UnsupportedOperationException("Cannot be mapped to number " + this);
+ }
+
+ Object decode(boolean s) {
+ throw new UnsupportedOperationException("Cannot be mapped to boolean " + this);
+ }
+
+ Object decode() {
+ return null;
+ }
+
+}