Make Atom.getAtomTypeString public.

I've found myself doing this a couple of times during local
debugging. It's harmless to have it public, and seems pretty
useful for debugging inside of the mp4 package.
This commit is contained in:
Oliver Woodman 2015-05-01 20:12:28 +01:00
parent b787852e71
commit 6cccfc1caa

View File

@ -180,7 +180,13 @@ import java.util.List;
return 0x00FFFFFF & fullAtomInt;
}
private static String getAtomTypeString(int type) {
/**
* Converts a numeric atom type to the corresponding four character string.
*
* @param type The numeric atom type.
* @return The corresponding four character string.
*/
public static String getAtomTypeString(int type) {
return "" + (char) (type >> 24)
+ (char) ((type >> 16) & 0xFF)
+ (char) ((type >> 8) & 0xFF)