public class ShellLink extends Object
| Constructor and Description |
|---|
ShellLink() |
ShellLink(File file) |
ShellLink(InputStream in) |
ShellLink(Path file) |
ShellLink(String file) |
| Modifier and Type | Method and Description |
|---|---|
static ShellLink |
createLink(String target) |
static ShellLink |
createLink(String target,
String linkpath)
equivalent to createLink(target).saveTo(linkpath)
|
LinkInfo |
createLinkInfo() |
String |
getCMDArgs() |
ConsoleData |
getConsoleData() |
ShellLinkHeader |
getHeader() |
String |
getIconLocation() |
String |
getLanguage() |
LinkInfo |
getLinkInfo() |
String |
getName() |
String |
getRelativePath() |
String |
getWorkingDir() |
String |
resolveTarget() |
ShellLink |
saveTo(String path) |
ShellLink |
setCMDArgs(String s) |
ShellLink |
setIconLocation(String s) |
ShellLink |
setLanguage(String s) |
ShellLink |
setName(String s) |
ShellLink |
setRelativePath(String s) |
ShellLink |
setTarget(String target)
Set path of target file of directory.
|
ShellLink |
setWorkingDir(String s) |
public static final String VERSION
public ShellLink()
public ShellLink(String file) throws IOException, ShellLinkException
IOExceptionShellLinkExceptionpublic ShellLink(File file) throws IOException, ShellLinkException
IOExceptionShellLinkExceptionpublic ShellLink(Path file) throws IOException, ShellLinkException
IOExceptionShellLinkExceptionpublic ShellLink(InputStream in) throws IOException, ShellLinkException
IOExceptionShellLinkExceptionpublic ShellLinkHeader getHeader()
public LinkInfo getLinkInfo()
public LinkInfo createLinkInfo()
public String getName()
public String getRelativePath()
public String getWorkingDir()
public String getCMDArgs()
public String getIconLocation()
public ConsoleData getConsoleData()
public String getLanguage()
public ShellLink saveTo(String path) throws IOException
IOExceptionpublic String resolveTarget()
public ShellLink setTarget(String target)
public static ShellLink createLink(String target, String linkpath) throws IOException
IOExceptionCopyright © 2016–2018 Frederik Kammel. All rights reserved.