IFile
interface, that can be obtained from
IFileSystemManager.getFile(PortalFilePath)
. The direct
usage of Java file API can produce
unpredictable portal behavior, when not using the
LumisPortal default filesystem implementations. The new filesystem
API is highly recommended to be used instead.@Deprecated public class PortalFile extends File
Extends the File
, embedding the raising of events and portal cluster replication.
pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
PortalFile(File file)
Deprecated.
|
PortalFile(File parent,
String child)
Deprecated.
|
PortalFile(PortalFilePath portalFilePath)
Deprecated.
|
PortalFile(String pathname)
Deprecated.
|
PortalFile(String parent,
String child)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
createNewFile()
Deprecated.
|
boolean |
delete()
Deprecated.
|
void |
deleteOnExit()
Deprecated.
|
PortalFile |
getParentPortalFile()
Deprecated.
|
PortalFilePath |
getPortalFilePath()
Deprecated.
|
boolean |
mkdir()
Deprecated.
|
boolean |
mkdirs()
Deprecated.
|
void |
recursiveDelete()
Deprecated.
|
boolean |
renameTo(File dest)
Deprecated.
|
boolean |
setLastModified(long time)
Deprecated.
|
boolean |
setReadOnly()
Deprecated.
|
String |
toString()
Deprecated.
|
canExecute, canRead, canWrite, compareTo, createTempFile, createTempFile, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, setExecutable, setExecutable, setReadable, setReadable, setWritable, setWritable, toPath, toURI, toURL
@Deprecated public PortalFile(PortalFilePath portalFilePath)
@Deprecated public PortalFile(File file)
@Deprecated public PortalFile(File parent, String child)
If the parent file is an instance of a portal file, the result portal file will
have the same PortalBaseFolder
, but
adds the child
string to the parent's relative path. The
resulting relative path must be valid and still reside inside the same
PortalBaseFolder
.
Example:
If parent
has base folder DATA
and relative path "/path"
,
and child
is "child.txt"
, the resulting portal file will have
base folder DATA
and relative path "/path/child.txt"
.
parent
- the parent file.child
- the child pathname string.NullPointerException
- if parent
or child
is
null
.@Deprecated public PortalFile(String parent, String child)
@Deprecated public PortalFile(String pathname)
@Deprecated public PortalFilePath getPortalFilePath()
@Deprecated public String toString()
@Deprecated public PortalFile getParentPortalFile()
null
is returned;@Deprecated public void recursiveDelete()
@Deprecated public boolean createNewFile() throws IOException
createNewFile
in class File
IOException
@Deprecated public boolean delete()
@Deprecated public void deleteOnExit()
deleteOnExit
in class File
@Deprecated public boolean mkdir()
@Deprecated public boolean mkdirs()
@Deprecated public boolean renameTo(File dest)
@Deprecated public boolean setLastModified(long time)
setLastModified
in class File
@Deprecated public boolean setReadOnly()
setReadOnly
in class File
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.