Package sk.iway.iwcm.io
Class IwcmFile
java.lang.Object
sk.iway.iwcm.io.IwcmFile
IwcmFile.java
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canRead()
boolean
boolean
delete()
boolean
exists()
static IwcmFile
fromVirtualPath
(String path) static IwcmFile
fromVirtualPath
(String path, String fileName) int
getFatId()
long
getName()
getPath()
Vrati virtualnu cestu k suboru, bez mena suboru doplnene 5.2.boolean
boolean
isFile()
boolean
long
long
length()
IwcmFile[]
IwcmFile[]
listFiles
(IwcmFileFilter filter) boolean
mkdir()
boolean
mkdirs()
boolean
void
setFatId
(int fatId) boolean
setLastModified
(long time) void
setVirtualPath
(String virtualPath) toString()
-
Constructor Details
-
IwcmFile
filename je skutocna cesta napr. C:\foo\bar.jpg -
IwcmFile
-
IwcmFile
-
IwcmFile
-
-
Method Details
-
fromVirtualPath
-
fromVirtualPath
-
createNewFile
- Throws:
IOException
-
isDirectory
public boolean isDirectory() -
delete
public boolean delete() -
exists
public boolean exists() -
getPath
-
getFatId
public int getFatId() -
setFatId
public void setFatId(int fatId) -
getVirtualPath
-
setVirtualPath
-
listFiles
-
listFiles
-
getName
-
isFile
public boolean isFile() -
mkdir
public boolean mkdir() -
getParent
-
getVirtualParent
Vrati virtualnu cestu k suboru, bez mena suboru doplnene 5.2. 2009 - kmarton - kvoli rekurzivnej kontrole pouzitia suborov, vo funkcii priamo pouzite "/" ako file separator kvoli tomu, ze predtym to prechadza cez getVirtualPath a tam su vsetky "\" nahradzane "/" ako cesta v prehliadacoch- Returns:
- String napr. ak je virtualna path /templates/webjet/temp_2.jsp, tak funkcia vrati /templates/webjet ak je to adresar napr. /templates/webjet/, vrati /templates
-
getParentFile
-
mkdirs
public boolean mkdirs() -
getAbsolutePath
-
getLength
public long getLength() -
length
public long length() -
lastModified
public long lastModified() -
setLastModified
public boolean setLastModified(long time) -
renameTo
-
canRead
public boolean canRead() -
toString
-
getCanonicalPath
- Returns:
-
isJarPackaging
public boolean isJarPackaging()
-