java.lang.Object
mslinks.ShellLink
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate HashMap<Integer, Serializable> private static HashMap<Integer, Class<? extends Serializable>> private ShellLinkHeaderprivate Stringprivate LinkTargetIDListprivate LinkInfoprivate Pathprivate Stringprivate Stringstatic final Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShellLinkcreateLink(String target) static ShellLinkcreateLink(String target, String linkpath) equivalent to createLink(target).saveTo(linkpath)getName()private voidparse(ByteReader data) private static StringresolveEnvVariables(String path) private voidserialize(OutputStream out) setCMDArgs(String s) Set path of target file of directory.
-
Field Details
-
VERSION
- See Also:
-
env
-
extraTypes
-
header
-
idlist
-
info
-
name
-
relativePath
-
workingDir
-
cmdArgs
-
iconLocation
-
extra
-
linkFileSource
-
-
Constructor Details
-
ShellLink
public ShellLink() -
ShellLink
- Throws:
IOExceptionShellLinkException
-
ShellLink
- Throws:
IOExceptionShellLinkException
-
ShellLink
- Throws:
IOExceptionShellLinkException
-
ShellLink
- Throws:
IOExceptionShellLinkException
-
-
Method Details
-
parse
- Throws:
ShellLinkExceptionIOException
-
serialize
- Throws:
IOException
-
getHeader
-
getLinkInfo
-
createLinkInfo
-
getName
-
setName
-
getRelativePath
-
setRelativePath
-
getWorkingDir
-
setWorkingDir
-
getCMDArgs
-
setCMDArgs
-
getIconLocation
-
setIconLocation
-
getConsoleData
-
getLanguage
-
setLanguage
-
saveTo
- Throws:
IOException
-
resolveTarget
-
setTarget
Set path of target file of directory. Function accepts local paths and network paths. Environment variables are accepted but resolved here and aren't kept in link. -
createLink
-
createLink
equivalent to createLink(target).saveTo(linkpath)- Throws:
IOException
-
resolveEnvVariables
-