// the method name...
final String methodName = (String) inputStream.readObject();
// the parameter types...
final int parameterCount = inputStream.readInt();
final String[] parameterTypes = new String[parameterCount];
for (int i = 0; i < parameterTypes.length; i++) {
parameterTypes[i] = (String) inputStream.readObject();
}