@Override protected Object replaceObject(Object obj) throws IOException { if (false) throw new IOException(); // suppress warning String name = table.get(obj); if (name == null) return obj; return new PendingLookup(name); }
@Override protected Object resolveObject(Object obj) throws IOException { if (obj instanceof ScriptableOutputStream.PendingLookup) { String name = ((ScriptableOutputStream.PendingLookup)obj).getName(); obj = ScriptableOutputStream.lookupQualifiedName(scope, name); if (obj == Scriptable.NOT_FOUND) { throw new IOException("Object " + name + " not found upon " + "deserialization."); } }else if (obj instanceof UniqueTag) { obj = ((UniqueTag)obj).readResolve(); }else if (obj instanceof Undefined) { obj = ((Undefined)obj).readResolve(); } return obj; }
@Override protected Object resolveObject(Object obj) throws IOException { if (obj instanceof ScriptableOutputStream.PendingLookup) { String name = ((ScriptableOutputStream.PendingLookup)obj).getName(); obj = ScriptableOutputStream.lookupQualifiedName(scope, name); if (obj == Scriptable.NOT_FOUND) { throw new IOException("Object " + name + " not found upon " + "deserialization."); } }else if (obj instanceof UniqueTag) { obj = ((UniqueTag)obj).readResolve(); }else if (obj instanceof Undefined) { obj = ((Undefined)obj).readResolve(); } return obj; }
protected Object resolveObject(Object obj) throws IOException { if (obj instanceof ScriptableOutputStream.PendingLookup) { String name = ((ScriptableOutputStream.PendingLookup)obj).getName(); obj = ScriptableOutputStream.lookupQualifiedName(scope, name); if (obj == Scriptable.NOT_FOUND) { throw new IOException("Object " + name + " not found upon " + "deserialization."); } }else if (obj instanceof UniqueTag) { obj = ((UniqueTag)obj).readResolve(); }else if (obj instanceof Undefined) { obj = ((Undefined)obj).readResolve(); } return obj; }
@Override protected Object resolveObject(Object obj) throws IOException { if (obj instanceof ScriptableOutputStream.PendingLookup) { String name = ((ScriptableOutputStream.PendingLookup)obj).getName(); obj = ScriptableOutputStream.lookupQualifiedName(scope, name); if (obj == Scriptable.NOT_FOUND) { throw new IOException("Object " + name + " not found upon " + "deserialization."); } }else if (obj instanceof UniqueTag) { obj = ((UniqueTag)obj).readResolve(); }else if (obj instanceof Undefined) { obj = ((Undefined)obj).readResolve(); } return obj; }
@Override protected Object resolveObject(Object obj) throws IOException { if (obj instanceof ScriptableOutputStream.PendingLookup) { String name = ((ScriptableOutputStream.PendingLookup)obj).getName(); obj = ScriptableOutputStream.lookupQualifiedName(scope, name); if (obj == Scriptable.NOT_FOUND) { throw new IOException("Object " + name + " not found upon " + "deserialization."); } }else if (obj instanceof UniqueTag) { obj = ((UniqueTag)obj).readResolve(); }else if (obj instanceof Undefined) { obj = ((Undefined)obj).readResolve(); } return obj; }
@Override protected Object resolveObject(Object obj) throws IOException { if (obj instanceof ScriptableOutputStream.PendingLookup) { String name = ((ScriptableOutputStream.PendingLookup)obj).getName(); obj = ScriptableOutputStream.lookupQualifiedName(scope, name); if (obj == Scriptable.NOT_FOUND) { throw new IOException("Object " + name + " not found upon " + "deserialization."); } }else if (obj instanceof UniqueTag) { obj = ((UniqueTag)obj).readResolve(); }else if (obj instanceof Undefined) { obj = ((Undefined)obj).readResolve(); } return obj; }
@Override protected Object replaceObject(Object obj) throws IOException { if (false) throw new IOException(); // suppress warning String name = table.get(obj); if (name == null) return obj; return new PendingLookup(name); }
@Override protected Object replaceObject(Object obj) throws IOException { if (false) throw new IOException(); // suppress warning String name = table.get(obj); if (name == null) return obj; return new PendingLookup(name); }
@Override protected Object replaceObject(Object obj) throws IOException { if (false) throw new IOException(); // suppress warning String name = table.get(obj); if (name == null) return obj; return new PendingLookup(name); }
protected Object replaceObject(Object obj) throws IOException { String name = (String) table.get(obj); if (name == null) return obj; return new PendingLookup(name); }
@Override protected Object replaceObject(Object obj) throws IOException { if (false) throw new IOException(); // suppress warning String name = table.get(obj); if (name == null) return obj; return new PendingLookup(name); }