|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.file.Folder
public class Folder
This class works with file system.
Enables to go through directory content and to find information about single records.
Example:
import com.alarexgroup.m2mplf.M2Mlet;
|
| Constructor Summary | |
|---|---|
Folder()
|
|
| Method Summary | |
|---|---|
long |
avaiable()
Available place in v file system |
void |
close()
Finish work with folder |
static boolean |
createFolder(java.lang.String fullPath)
Creates directory in parameter. |
static boolean |
deleteFolder(java.lang.String fullPath)
Ereases folder in paramenter. |
java.lang.String |
getName()
Returns item in folder obtained by nextItem() |
java.lang.String |
getPath()
Returns path to item obtained by nextItem() |
boolean |
isFolder()
Test if the item was obtained by nextItem() folder. |
boolean |
isHidden()
Tests if the item was set as hidden |
boolean |
isReadable()
Tests if the item was set as readable |
boolean |
isWriteable()
Tests if the item was set as writable. |
boolean |
nextItem()
This function sets the pointer on next item in folder. |
static Folder |
openFolder(java.lang.String fullPath)
Opens directory in parameter for content location. |
long |
size()
Returns size of item. |
long |
total()
Total folder size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Folder()
| Method Detail |
|---|
public static Folder openFolder(java.lang.String fullPath)
fullPath - Full path and name of directory
for example: a:/folder1/ nebo a:/
public boolean nextItem()
public java.lang.String getName()
nextItem()
public java.lang.String getPath()
nextItem()
public boolean isHidden()
public boolean isWriteable()
public boolean isReadable()
public long size()
public long total()
public long avaiable()
public boolean isFolder()
nextItem() folder.
public static boolean createFolder(java.lang.String fullPath)
fullPath - name of directory - includes path
public static boolean deleteFolder(java.lang.String fullPath)
fullPath - to folder
public void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||