public AMF0Deserializer(DataInputStream inputStream) throws IOException {
        //if (log.isInfoEnabled()) log.info("Deserializing Message, for more info turn on debug level");

        // Save the input stream for this object
        this.inputStream = inputStream;
        
        // Read the binary header
        readHeaders();
        if (log.isDebugEnabled()) log.debug("readHeader");
        // Read the binary body
        readBodies();
        if (log.isDebugEnabled()) log.debug("readBody");
    }