|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jasp.io.Folder
Contains methods and properties that allow you to create, delete, or move folders. Also allows you to query the system for folder names, paths, and various other properties. Provides access to all the properties of a folder.
Constructor Summary | |
Folder(java.lang.String name)
|
Method Summary | |
void |
Copy(java.lang.String destination)
Copies a specified file or folder from one location to another. |
void |
Copy(java.lang.String destination,
boolean overwrite)
Copies a specified file or folder from one location to another. |
TextStream |
CreateTextFile(java.lang.String filename)
Create a file as a TextStream |
TextStream |
CreateTextFile(java.lang.String filename,
boolean overwrite)
Create a file as a TextStream |
TextStream |
CreateTextFile(java.lang.String filename,
boolean overwrite,
boolean unicode)
Create a file as a TextStream |
void |
Delete()
Deletes a specified file |
void |
Delete(boolean force)
Deletes a specified file |
int |
getAttributes()
|
vbdate |
getDateCreated()
|
vbdate |
getDateLastAccessed()
|
vbdate |
getDateLastModified()
|
java.lang.String |
getDrive()
|
Files |
getFiles()
|
java.lang.String |
getName()
|
java.lang.String |
getParentFolder()
|
java.lang.String |
getPath()
|
java.lang.String |
getShortName()
|
java.lang.String |
getShortPath()
|
int |
getSize()
|
Folders |
getSubFolders()
|
java.lang.String |
getType()
|
boolean |
IsRootFolder()
Returns True if the specified folder is the root folder; False if it is not. |
void |
Move(java.lang.String destination)
Moves a specified file or folder from one location to another. |
void |
setAttributes(int attr)
|
void |
setName(java.lang.String n)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Folder(java.lang.String name)
Method Detail |
public java.lang.String getType()
public int getAttributes() throws java.lang.Exception
public void setAttributes(int attr) throws java.lang.Exception
public vbdate getDateCreated()
public vbdate getDateLastAccessed()
public vbdate getDateLastModified()
public java.lang.String getDrive() throws java.lang.Exception
public Files getFiles() throws java.lang.Exception
public boolean IsRootFolder() throws java.lang.Exception
public java.lang.String getName() throws java.lang.Exception
public void setName(java.lang.String n) throws java.lang.Exception
public java.lang.String getParentFolder() throws java.lang.Exception
public java.lang.String getPath() throws java.lang.Exception
public java.lang.String getShortName() throws java.lang.Exception
public java.lang.String getShortPath() throws java.lang.Exception
public int getSize() throws java.lang.Exception
public Folders getSubFolders() throws java.lang.Exception
public void Copy(java.lang.String destination) throws java.lang.Exception
destination
- Destination where the file or folder
is to be copied. Wildcard characters are not allowed.public void Copy(java.lang.String destination, boolean overwrite) throws java.lang.Exception
destination
- Destination where the file or folder
is to be copied. Wildcard characters are not allowed.overwrite
- Boolean value that is True (default) if
existing files or folders are to be overwritten;
False if they are not.public void Delete() throws java.lang.Exception
public void Delete(boolean force) throws java.lang.Exception
force
- Boolean value that is True if files or folders
with the read-only attribute set are to be deleted;
False (default) if they are not.public void Move(java.lang.String destination) throws java.lang.Exception
destination
- Destination where the file or folder is to be
moved. Wildcard characters are not allowed.public TextStream CreateTextFile(java.lang.String filename) throws java.lang.Exception
filename
- String expression that identifies the file to
create.public TextStream CreateTextFile(java.lang.String filename, boolean overwrite) throws java.lang.Exception
filename
- String expression that identifies the file to
create.overwrite
- Boolean value that indicates whether you can
overwrite an existing file. The value is true if the
file can be overwritten, false if it can't be overwritten.
If omitted, existing files are not overwritten.public TextStream CreateTextFile(java.lang.String filename, boolean overwrite, boolean unicode) throws java.lang.Exception
filename
- String expression that identifies the file to
create.overwrite
- Boolean value that indicates whether you can
overwrite an existing file. The value is true if the
file can be overwritten, false if it can't be overwritten.
If omitted, existing files are not overwritten.unicode
- Boolean value that indicates whether the file is
created as a Unicode or ASCII file. The value is true if
the file is created as a Unicode file, false if it's
created as an ASCII file. If omitted, an ASCII file is
assumed.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |