/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Proxies for another Transferable so that Serializable objects are never
* returned directly by DnD or the Clipboard. Instead, a new instance of the
* object is returned.
*
* @author Lawrence P.G. Cable
* @author David Mendenhall
*
* @since 1.4
*/
transferable = t;
}
return transferable.getTransferDataFlavors();
}
}
{
// If the data is a Serializable object, then create a new instance
// before returning it. This insulates applications sharing DnD and
// Clipboard data from each other.
try {
oos.getClassLoaderMap());
} catch (ClassNotFoundException cnfe) {
}
}
return data;
}
protected final boolean isLocal;
}
super(os);
}
return cl.getClassLoader();
}
});
}
return cl.getClassLoader();
}
});
}
}
}
}
throws IOException {
super(is);
throw new NullPointerException("Null map");
}
}
throws IOException, ClassNotFoundException {
if (classLoader != null) {
} else {
return super.resolveClass(classDesc);
}
}
throws IOException, ClassNotFoundException {
s.add(interfaces[i]);
}
if (classLoader == null) {
return super.resolveProxyClass(interfaces);
}
// The code below is mostly copied from the superclass.
boolean hasNonPublicInterface = false;
// define proxy in class loader of non-public interface(s), if any
if (hasNonPublicInterface) {
throw new IllegalAccessError(
"conflicting non-public interface class loaders");
}
} else {
hasNonPublicInterface = true;
}
}
}
try {
} catch (IllegalArgumentException e) {
throw new ClassNotFoundException(null, e);
}
}
}