Code example for ObjectInput

Methods: readObject, readUTF

0
         * @see java.io.Externalizable#readExternal(java.io.ObjectInput) 
         */ 
        public void readExternal(ObjectInput in) throws IOException,
                ClassNotFoundException { 
             
            this.prefix = in.readUTF();
            if ("".equals(this.prefix)) this.prefix = null;
            this.localName = in.readUTF();
            this.owner = in.readUTF();
            this.name = in.readUTF();
            this.types = (String[]) in.readObject();
        } 
     
        public Method getMethod() {
            if (this.m == null) {
                try { 
                    Class t = Class.forName(this.owner);
                    Class[] p = ReflectionUtil.toTypeArray(this.types);
                    this.m = t.getMethod(this.name, p);
                } catch (Exception e) {
                    e.printStackTrace();