Package sk.iway.iwcm.io
Class IwcmFile
java.lang.Object
sk.iway.iwcm.io.IwcmFile
IwcmFile.java
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead()booleanbooleandelete()booleanexists()static IwcmFilefromVirtualPath(String path) static IwcmFilefromVirtualPath(String path, String fileName) intgetFatId()longgetName()getPath()Vrati virtualnu cestu k suboru, bez mena suboru doplnene 5.2.booleanbooleanisFile()booleanlonglonglength()IwcmFile[]IwcmFile[]listFiles(IwcmFileFilter filter) booleanmkdir()booleanmkdirs()booleanvoidsetFatId(int fatId) booleansetLastModified(long time) voidsetVirtualPath(String virtualPath) toString()
-
Constructor Details
-
IwcmFile
filename je skutocna cesta napr. C:\foo\bar.jpg -
IwcmFile
-
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()
-