code: private byte[] readExternalJ2EEName(ObjectInput in)
                      throws java.io.IOException {
  
          int nameLength = in.readInt();
          byte[] name = new byte[nameLength];
          //d164415 start
          int bytesRead = 0;
          for (int offset = 0; offset < nameLength; offset += bytesRead)
          {
              bytesRead = in.read(name, offset, nameLength - offset);
              if (bytesRead == -1)
              {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                      Tr.debug(tc, "readExternalJ2EEName encountered end of stream");
                  throw new IOException("end of input stream while reading J2EEName");
              }
          }
          //d164415 end
  
          return name;
      }
docs: 89554