public static VdexHeader getVdexHeader(BinaryReader reader)
			throws IOException, UnsupportedVdexVersionException {
		String magic = reader.readAsciiString(0, VdexConstants.MAGIC.length());
		String version = reader.readAsciiString(4, 4);
		if (magic.equals(VdexConstants.MAGIC)) {
			if (VdexConstants.isSupportedVersion(version)) {
				if (version.equals(VdexConstants.VDEX_VERSION_006)) {
					return new VdexHeader_006(reader);
				}
				else if (version.equals(VdexConstants.VDEX_VERSION_010)) {
					return new VdexHeader_010(reader);
				}
				else if (version.equals(VdexConstants.VDEX_VERSION_019)) {
					return new VdexHeader_019(reader);
				}
				else if (version.equals(VdexConstants.VDEX_VERSION_021)) {
					return new VdexHeader_021(reader);
				}
				else if (version.equals(VdexConstants.VDEX_VERSION_027)) {
					return new VdexHeader_027(reader);
				}
			}
		}
		throw new UnsupportedVdexVersionException(magic, version);
	}
Returns an VDEX Header for the specified version.
@param reader the binary reader
@return the new VDEX header
@throws IOException if an error occurs creating new VDEX header
@throws UnsupportedVdexVersionException when the provided version is invalid or not yet implemented.
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/android/vdex/VdexHeaderFactory.java