public Map<String, String> getCode() {
		Map<String, String> map = new HashMap<String, String>();

		for (String str : chars) {
			findStr(str, this.tree.getRoot());
			int size = stack.size();

			StringBuffer codeStr = new StringBuffer();

			for (int i = 0; i < size; i++) {
				codeStr.append(stack.pop());
			}

			map.put(str, codeStr.toString());
		}

		return map;
	}