}
return message;
}
public AMFMessageHeader readHeader() throws ClassNotFoundException, IOException {
AMFMessageHeader header = new AMFMessageHeader();
String name = worker.readUTF();
header.setName(name);
boolean mustUnderstand = worker.readBoolean();
header.setMustUnderstand(mustUnderstand);
worker.readMessageLength();
worker.reset();
Object data = readObject();
header.setData(data);
return header;
}