Class Util

java.lang.Object
org.fife.rsta.ac.java.classreader.Util
All Implemented Interfaces:
AccessFlags

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

    • Util

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

    • 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:
    • 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:
    • 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:
    • 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:
    • skipBytes

      public static void skipBytes(DataInputStream in, int count) throws 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:
      IOException - If an IO error occurs.