Class Util

  • All Implemented Interfaces:
    AccessFlags

    public final class Util
    extends java.lang.Object
    implements AccessFlags
    Utility methods for this package.
    Version:
    1.0
    • Constructor Detail

      • Util

        private Util()
        Private constructor to prevent instantiation.
    • Method Detail

      • isDefault

        public static boolean isDefault​(int accessFlags)
        Returns whether an object has default scope.
        Parameters:
        accessFlags - The access flags to check.
        Returns:
        Whether an object has default scope.
        See Also:
        isDefault(int), isPrivate(int), isPublic(int)
      • isPrivate

        public static boolean isPrivate​(int accessFlags)
        Returns whether an object has private scope.
        Parameters:
        accessFlags - The access flags to check.
        Returns:
        Whether an object has private scope.
        See Also:
        isDefault(int), isPrivate(int), isPublic(int)
      • isProtected

        public static boolean isProtected​(int accessFlags)
        Returns whether an object has protected scope.
        Parameters:
        accessFlags - The access flags to check.
        Returns:
        Whether an object has protected scope.
        See Also:
        isDefault(int), isPrivate(int), isPublic(int)
      • isPublic

        public static boolean isPublic​(int accessFlags)
        Returns whether an object has public scope.
        Parameters:
        accessFlags - The access flags to check.
        Returns:
        Whether an object has public scope.
        See Also:
        isDefault(int), isPrivate(int), isPublic(int)
      • skipBytes

        public static void skipBytes​(java.io.DataInputStream in,
                                     int count)
                              throws java.io.IOException
        Fully skips a given number of bytes in an input stream.
        Parameters:
        in - The input stream.
        count - The number of bytes to skip.
        Throws:
        java.io.IOException - If an IO error occurs.