Code example for ObjectStreamClass

Methods: getName

0
	 
	@Override 
	protected java.io.ObjectStreamClass readClassDescriptor() 
	        throws IOException, ClassNotFoundException { 
	    ObjectStreamClass desc = super.readClassDescriptor();
	    Matcher matcher = pattern.matcher(desc.getName());
	    if(matcher.matches()) {
	    	System.out.println("Converting package name for: " +matcher.group(1));
	    	String className = "orxanimeditor.data.v1."+matcher.group(1);
	        return ObjectStreamClass.lookup(Class.forName(className));	    	
	    } 
	    return desc;
	}; 
 
 
}