Class WindowsDesktopEntry

  • All Implemented Interfaces:
    GenericDesktopEntry

    public class WindowsDesktopEntry
    extends java.lang.Object
    implements GenericDesktopEntry
    Based on https://github.com/DmitriiShamrikov/mslinks
    • Field Detail

      • LOG

        private static final Logger LOG
      • iconLocation

        private final LazyLoaded<java.lang.String> iconLocation
    • Constructor Detail

      • WindowsDesktopEntry

        public WindowsDesktopEntry​(JNLPFile file)
    • Method Detail

      • getShortcutFileName

        private java.lang.String getShortcutFileName()
      • getShortcutName

        private java.lang.String getShortcutName()
      • sanitize

        private java.lang.String sanitize​(java.lang.String fileName)
      • getDesktopLnkPath

        private java.lang.String getDesktopLnkPath()
      • getJavaWsBin

        private java.lang.String getJavaWsBin()
                                       throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • manageShortcutList

        private void manageShortcutList​(java.lang.String path)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • readAllLines

        private java.util.List<java.lang.String> readAllLines​(java.io.File shortcutFile)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • needToAddNewShortcutEntry

        private boolean needToAddNewShortcutEntry​(java.lang.String path,
                                                  java.util.List<java.lang.String> lines)
      • quoted

        private java.lang.String quoted​(java.net.URL url)
      • desktopPath

        private static java.lang.String desktopPath()