public class Win32Link
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Win32Link.ItemID
Items ids, similar to the MS Shell API's struct SHITEMID
|
class |
Win32Link.MyComputerId
The Root item of a local Machine "My Computer"
|
class |
Win32Link.URLFileId
A File in a webfolder
|
class |
Win32Link.URLFolderId
A Folder (path) of a webfolder
|
class |
Win32Link.WebFoldersId
The Root of "WebFolders"
|
Modifier and Type | Field and Description |
---|---|
static int |
FA_ARCHIVE |
static int |
FA_COMPRESSED |
static int |
FA_DIRECTORY |
static int |
FA_ENCRYPTED |
static int |
FA_HIDDEN |
static int |
FA_NORMAL |
static int |
FA_OFFLINE |
static int |
FA_READ_ONLY |
static int |
FA_REPARSE |
static int |
FA_SPARSE |
static int |
FA_SYSTEM |
static int |
FA_TEMPORARY |
static java.lang.String |
REVISION |
static int |
SW_HIDE |
static int |
SW_MINIMIZE |
static int |
SW_NORMAL |
static int |
SW_RESTORE |
static int |
SW_SHOW |
static int |
SW_SHOWDEFAULT |
static int |
SW_SHOWMAXIMIZED |
static int |
SW_SHOWMINIMIZED |
static int |
SW_SHOWMINNOACTIVE |
static int |
SW_SHOWNA |
static int |
SW_SHOWNOACTIVATE |
static int |
VF_LOCAL |
static int |
VF_NETWORK |
Constructor and Description |
---|
Win32Link() |
Modifier and Type | Method and Description |
---|---|
void |
addItemId(Win32Link.ItemID item)
Add another ItemId to the trail of ItemIds
|
byte[] |
getBytes()
Build and return the bytes that would appear in the *.lnk file
|
java.lang.String |
getCommandlineArgs()
Returns the commandlineArgs.
|
long |
getCreateTime()
Returns the createTime.
|
java.lang.String |
getDescription()
Returns the description.
|
int |
getFileAttibutes()
Returns the fileAttibutes.
|
int |
getFileLength()
Returns the fileLength.
|
int |
getHotKey()
Returns the hotKey.
|
java.lang.String |
getIconFile()
Returns the iconFile.
|
int |
getIconNumber()
Returns the iconNumber.
|
long |
getLastAccessTime()
Returns the lastAccessTime.
|
long |
getModifiedTime()
Returns the modifiedTime.
|
java.lang.String |
getRelativePath()
Returns the relativePath.
|
int |
getShowWindow()
Returns the showWindow.
|
boolean |
getUnicode()
Are the internal string Multi-byte unicode?
|
java.lang.String |
getWorkingDirectory()
Returns the workingDirectory.
|
void |
load(java.io.File file) |
void |
load(java.lang.String fileName) |
void |
save(java.io.File file)
Write out a *.lnk file
|
void |
save(java.lang.String fileName) |
void |
setCommandlineArgs(java.lang.String commandlineArgs)
Sets the commandlineArgs.
|
void |
setCreateTime(long createTime)
Sets the createTime.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setFileAttibutes(int fileAttibutes)
Sets the fileAttibutes.
|
void |
setFileLength(int fileLength)
Sets the fileLength.
|
void |
setHotKey(int hotKey)
Sets the hotKey.
|
void |
setIconFile(java.lang.String iconFile)
Sets the iconFile.
|
void |
setIconNumber(int iconNumber)
Sets the iconNumber.
|
void |
setLastAccessTime(long lastAccessTime)
Sets the lastAccessTime.
|
void |
setModifiedTime(long modifiedTime)
Sets the modifiedTime.
|
void |
setRelativePath(java.lang.String relativePath)
Sets the relativePath.
|
void |
setShowWindow(int showWindow)
Sets the showWindow.
|
void |
setUnicode(boolean unicode)
Set internal strings to Multi-byte unicode (UTF-16)
|
void |
setWebfile(java.lang.String displayName,
java.lang.String URL,
java.lang.String baseURL) |
void |
setWebfolder(java.lang.String displayName,
java.lang.String URL,
java.lang.String baseURL) |
void |
setWorkingDirectory(java.lang.String workingDirectory)
Sets the workingDirectory.
|
public static final java.lang.String REVISION
public static final int FA_READ_ONLY
public static final int FA_HIDDEN
public static final int FA_SYSTEM
public static final int FA_DIRECTORY
public static final int FA_ARCHIVE
public static final int FA_ENCRYPTED
public static final int FA_NORMAL
public static final int FA_TEMPORARY
public static final int FA_SPARSE
public static final int FA_REPARSE
public static final int FA_COMPRESSED
public static final int FA_OFFLINE
public static final int SW_HIDE
public static final int SW_NORMAL
public static final int SW_SHOWMINIMIZED
public static final int SW_SHOWMAXIMIZED
public static final int SW_SHOWNOACTIVATE
public static final int SW_SHOW
public static final int SW_MINIMIZE
public static final int SW_SHOWMINNOACTIVE
public static final int SW_SHOWNA
public static final int SW_RESTORE
public static final int SW_SHOWDEFAULT
public static final int VF_LOCAL
public static final int VF_NETWORK
public void setWebfolder(java.lang.String displayName, java.lang.String URL, java.lang.String baseURL)
displayName
- - internal display nameURL
- - the folder destination (ex: http://abc.org/pub/docs/)baseURL
- - the oldest anscestor folder you can recursively browse up topublic void setWebfile(java.lang.String displayName, java.lang.String URL, java.lang.String baseURL)
displayName
- - internal display nameURL
- - the file destination (ex: http://abc.org/pub/docs/report.xls)baseURL
- - the oldest anscestor folder you can recursively browse up topublic void load(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void load(java.io.File file) throws java.io.IOException
java.io.IOException
public void save(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void save(java.io.File file) throws java.io.IOException
file
- java.io.IOException
public byte[] getBytes()
public java.lang.String getCommandlineArgs()
public long getCreateTime()
public java.lang.String getDescription()
public int getFileAttibutes()
public int getFileLength()
public int getHotKey()
public java.lang.String getIconFile()
public int getIconNumber()
public long getLastAccessTime()
public long getModifiedTime()
public java.lang.String getRelativePath()
public int getShowWindow()
public java.lang.String getWorkingDirectory()
public void setCommandlineArgs(java.lang.String commandlineArgs)
commandlineArgs
- The commandlineArgs to setpublic void setCreateTime(long createTime)
createTime
- The createTime to setpublic void setDescription(java.lang.String description)
description
- The description to setpublic void setFileAttibutes(int fileAttibutes)
fileAttibutes
- The fileAttibutes to setpublic void setFileLength(int fileLength)
fileLength
- The fileLength to setpublic void setHotKey(int hotKey)
hotKey
- The hotKey to setpublic void setIconFile(java.lang.String iconFile)
iconFile
- The iconFile to setpublic void setIconNumber(int iconNumber)
iconNumber
- The iconNumber to setpublic void setLastAccessTime(long lastAccessTime)
lastAccessTime
- The lastAccessTime to setpublic void setModifiedTime(long modifiedTime)
modifiedTime
- The modifiedTime to setpublic void setRelativePath(java.lang.String relativePath)
relativePath
- The relativePath to setpublic void setShowWindow(int showWindow)
showWindow
- The showWindow to setpublic void setWorkingDirectory(java.lang.String workingDirectory)
workingDirectory
- The workingDirectory to setpublic boolean getUnicode()
public void setUnicode(boolean unicode)
unicode
- public void addItemId(Win32Link.ItemID item)
item
- Copyright © 2001-2010 Jalios SA. All Rights Reserved.