|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.webdav.Win32Link
public class Win32Link
A MS Windows Shortcut (*.LNK) file builder, pure Java port. Supports MS WebFolders.
Nested Class Summary | |
---|---|
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" |
Field Summary | |
---|---|
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 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 Summary | |
---|---|
Win32Link()
|
Method Summary | |
---|---|
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 |
String |
getCommandlineArgs()
Returns the commandlineArgs. |
long |
getCreateTime()
Returns the createTime. |
String |
getDescription()
Returns the description. |
int |
getFileAttibutes()
Returns the fileAttibutes. |
int |
getFileLength()
Returns the fileLength. |
int |
getHotKey()
Returns the hotKey. |
String |
getIconFile()
Returns the iconFile. |
int |
getIconNumber()
Returns the iconNumber. |
long |
getLastAccessTime()
Returns the lastAccessTime. |
long |
getModifiedTime()
Returns the modifiedTime. |
String |
getRelativePath()
Returns the relativePath. |
int |
getShowWindow()
Returns the showWindow. |
boolean |
getUnicode()
Are the internal string Multi-byte unicode? (UTF-16) |
String |
getWorkingDirectory()
Returns the workingDirectory. |
void |
load(File file)
|
void |
load(String fileName)
|
void |
save(File file)
Write out a *.lnk file |
void |
save(String fileName)
|
void |
setCommandlineArgs(String commandlineArgs)
Sets the commandlineArgs. |
void |
setCreateTime(long createTime)
Sets the createTime. |
void |
setDescription(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(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(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(String displayName,
String URL,
String baseURL)
|
void |
setWebfolder(String displayName,
String URL,
String baseURL)
|
void |
setWorkingDirectory(String workingDirectory)
Sets the workingDirectory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final 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
Constructor Detail |
---|
public Win32Link()
Method Detail |
---|
public void setWebfolder(String displayName, String URL, 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(String displayName, String URL, 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(String fileName) throws IOException
IOException
public void load(File file) throws IOException
IOException
public void save(String fileName) throws IOException
IOException
public void save(File file) throws IOException
file
-
IOException
public byte[] getBytes()
public String getCommandlineArgs()
public long getCreateTime()
public String getDescription()
public int getFileAttibutes()
public int getFileLength()
public int getHotKey()
public String getIconFile()
public int getIconNumber()
public long getLastAccessTime()
public long getModifiedTime()
public String getRelativePath()
public int getShowWindow()
public String getWorkingDirectory()
public void setCommandlineArgs(String commandlineArgs)
commandlineArgs
- The commandlineArgs to setpublic void setCreateTime(long createTime)
createTime
- The createTime to setpublic void setDescription(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(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(String relativePath)
relativePath
- The relativePath to setpublic void setShowWindow(int showWindow)
showWindow
- The showWindow to setpublic void setWorkingDirectory(String workingDirectory)
workingDirectory
- The workingDirectory to setpublic boolean getUnicode()
public void setUnicode(boolean unicode)
unicode
- public void addItemId(Win32Link.ItemID item)
item
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |