Code example for ObjectInputStream

Methods: readreadIntreadObjectreadUTF

0
    return isClass() ? className : getJsniIdent(); 
  } 
 
  private void readObject(ObjectInputStream in) throws IOException, 
      ClassNotFoundException { 
    className = (String) in.readObject(); 
    switch (in.read()) { 
      case 0: 
        break; 
      case 1: 
        memberName = in.readUTF(); 
        break; 
      case 2: 
        memberName = in.readUTF(); 
        methodSig = in.readUTF(); 
        break; 
      default: 
        throw new InvalidObjectException("Unexpected input"); 
    } 
    sourceLine = in.readInt(); 
    sourceUri = (String) in.readObject(); 
    symbolName = in.readUTF(); 
    queryId = in.readInt(); 
    castableTypeMap = (CastableTypeMap) in.readObject(); 
    seedId = in.readInt(); 
    fragmentNumber = in.readInt(); 
  } 
 
  /** 
   * Implemented by hand for speed (over using reflection) because there are so 
   * many of these. Note that {@link #className} and {@link #sourceUri} are done 
Connect your IDE to all the code out there  Get Codota for Java