java.lang.Object
mslinks.ShellLink
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private HashMap
<Integer, Serializable> private static HashMap
<Integer, Class<? extends Serializable>> private ShellLinkHeader
private String
private LinkTargetIDList
private LinkInfo
private Path
private String
private String
static final String
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShellLink
createLink
(String target) static ShellLink
createLink
(String target, String linkpath) equivalent to createLink(target).saveTo(linkpath)getName()
private void
parse
(ByteReader data) private static String
resolveEnvVariables
(String path) private void
serialize
(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:
IOException
ShellLinkException
-
ShellLink
- Throws:
IOException
ShellLinkException
-
ShellLink
- Throws:
IOException
ShellLinkException
-
ShellLink
- Throws:
IOException
ShellLinkException
-
-
Method Details
-
parse
- Throws:
ShellLinkException
IOException
-
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
-