ObjectStreamField(String name,String signature,boolean unshared){
  if (name == null) {
    throw new NullPointerException();
  }
  this.name=name;
  this.signature=signature.intern();
  this.unshared=unshared;
  field=null;
switch (signature.charAt(0)) {
case 'Z':
    type=Boolean.TYPE;
  break;
case 'B':
type=Byte.TYPE;
break;
case 'C':
type=Character.TYPE;
break;
case 'S':
type=Short.TYPE;
break;
case 'I':
type=Integer.TYPE;
break;
case 'J':
type=Long.TYPE;
break;
case 'F':
type=Float.TYPE;
break;
case 'D':
type=Double.TYPE;
break;
case 'L':
case '[':
type=Object.class;
break;
default :
throw new IllegalArgumentException("illegal signature");
}
}

ObjectStreamField ( String name , String signature , boolean unshared ) { if ( name == null ) { throw new NullPointerException ( ) ; } this . name = name ; this . signature = signature . intern ( ) ; this . unshared = unshared ; field = null ; switch ( signature . charAt ( 0 ) ) { case 'Z' : type = Boolean . TYPE ; break ; case 'B' : type = Byte . TYPE ; break ; case 'C' : type = Character . TYPE ; break ; case 'S' : type = Short . TYPE ; break ; case 'I' : type = Integer . TYPE ; break ; case 'J' : type = Long . TYPE ; break ; case 'F' : type = Float . TYPE ; break ; case 'D' : type = Double . TYPE ; break ; case 'L' : case '[' : type = Object . class ; break ; default : throw new IllegalArgumentException ( "illegal signature" ) ; } }
creates an objectstreamfield representing a field with the given name , signature and unshared setting .
