Commit 6cccfc1c by Oliver Woodman

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.
parent b787852e
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment