Class Util

java.lang.Object
org.glassfish.rmic.iiop.Util
All Implemented Interfaces:
Constants, Constants, RuntimeConstants

public final class Util extends Object implements Constants
Util provides static utility methods used by other rmic classes.
  • Constructor Details

    • Util

      public Util()
  • Method Details

    • packagePrefix

      public static String packagePrefix()
    • getOutputDirectoryFor

      private static File getOutputDirectoryFor(Identifier theClass, File rootDir, BatchEnvironment env, boolean idl)
      Return the directory that should be used for output for a given class.
      Parameters:
      theClass - The fully qualified name of the class.
      rootDir - The directory to use as the root of the package heirarchy. May be null, in which case the current working directory is used as the root.
    • getOutputDirectoryForIDL

      public static File getOutputDirectoryForIDL(Identifier theClass, File rootDir, BatchEnvironment env)
    • getOutputDirectoryForStub

      public static File getOutputDirectoryForStub(Identifier theClass, File rootDir, BatchEnvironment env)
    • ensureDirectory

      private static void ensureDirectory(File dir, BatchEnvironment env)
    • correctPackageName

      public static String correctPackageName(String p, boolean idl, boolean standardPackage)
    • isOffendingPackage

      public static boolean isOffendingPackage(String p)
    • hasOffendingPrefix

      public static boolean hasOffendingPrefix(String p)