Class CommonUtils


  • public final class CommonUtils
    extends java.lang.Object
    Class with utility methods common for both CLI and GUI.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CommonUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String cheatName​(java.lang.String base, int selectedIndex, java.lang.String suffix, java.lang.String fullyClassifiedName)  
      static java.lang.String guessClass​(java.lang.String src)  
      static boolean saveByGui​(java.lang.String fileNameBase, int naming, java.lang.String suffix, CommonUtils.StatusKeeper status, java.lang.String clazz, byte[] content)  
      static io.github.mkoncek.classpathless.api.IdentifiedSource[] toIdentifiedSources​(boolean recursive, java.lang.String... sources)  
      static io.github.mkoncek.classpathless.api.IdentifiedSource[] toIdentifiedSources​(boolean recursive, java.util.List<java.io.File> sources)  
      static boolean uploadByGui​(VmInfo vmInfo, VmManager vmManager, CommonUtils.StatusKeeper status, java.lang.String clazz, java.lang.String classloader, byte[] content)  
      static java.lang.String uploadBytecode​(java.lang.String clazz, java.lang.String classloader, VmManager vmManager, VmInfo vmInfo, byte[] bytes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommonUtils

        private CommonUtils()
    • Method Detail

      • saveByGui

        public static boolean saveByGui​(java.lang.String fileNameBase,
                                        int naming,
                                        java.lang.String suffix,
                                        CommonUtils.StatusKeeper status,
                                        java.lang.String clazz,
                                        byte[] content)
      • uploadByGui

        public static boolean uploadByGui​(VmInfo vmInfo,
                                          VmManager vmManager,
                                          CommonUtils.StatusKeeper status,
                                          java.lang.String clazz,
                                          java.lang.String classloader,
                                          byte[] content)
      • cheatName

        public static java.lang.String cheatName​(java.lang.String base,
                                                 int selectedIndex,
                                                 java.lang.String suffix,
                                                 java.lang.String fullyClassifiedName)
      • uploadBytecode

        public static java.lang.String uploadBytecode​(java.lang.String clazz,
                                                      java.lang.String classloader,
                                                      VmManager vmManager,
                                                      VmInfo vmInfo,
                                                      byte[] bytes)
      • guessClass

        public static java.lang.String guessClass​(java.lang.String src)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • toIdentifiedSources

        public static io.github.mkoncek.classpathless.api.IdentifiedSource[] toIdentifiedSources​(boolean recursive,
                                                                                                 java.util.List<java.io.File> sources)
                                                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • toIdentifiedSources

        public static io.github.mkoncek.classpathless.api.IdentifiedSource[] toIdentifiedSources​(boolean recursive,
                                                                                                 java.lang.String... sources)
                                                                                          throws java.io.IOException
        Throws:
        java.io.IOException