Code example for ObjectStreamClass

Methods: getName

0
	 
	//uses the given classLoader's library to find a class that matches the object being read in.  
	@Override 
	protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {
		try { 
			return classLoader.loadClass(desc.getName());
		} 
		catch(Exception e) {
			return super.resolveClass(desc);
		} 
	} 
	 
	@Override 
	public int read() throws IOException { 
		// TODO Auto-generated method stub 
		return 0; 
	} 
 
}