protected Date readAMF3Date() throws IOException {
        Date result = null;
        
        int type = readAMF3Integer();
        if ((type & 0x01) == 0) // stored Date
            result = (Date)getFromStoredObjects(type >> 1);
        else {
            result = new Date((long)readDouble());
            addToStoredObjects(result);
        }

        if (debugMore) debug("readAMF3Date() -> ", result);
        
        return result;
    }