public class JournalingFile extends atg.vfs.VirtualFileImpl implements VirtualFile, atg.vfs.owner.OwnedFile
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canRead()
Test if this file is readable 
 | 
boolean | 
canWrite()
Test if this file is writable 
 | 
boolean | 
checkOwnership()
check to see if it is possible to write the file given
 the current OwnerContext and the file's current ownership. 
 | 
boolean | 
createNewFile()
Create this file as a new empty file if it does not already exist. 
 | 
boolean | 
delete()
Delete this file. 
 | 
boolean | 
exists()
Test if this file exists. 
 | 
java.lang.String | 
getAbsolutePath()
Get the absolute path of this file. 
 | 
java.lang.String | 
getCanonicalPath()
Get the canonical form of the path of this file. 
 | 
long | 
getChecksum()
get the checksum of this file 
 | 
VirtualFile | 
getChild(java.lang.String pName)
Get the child file of this file with a given name. 
 | 
VirtualFile | 
getChild(atg.vfs.VirtualPath pPath)
Get the child file of this file with a given path. 
 | 
java.io.InputStream | 
getInputStream()
Get an input stream to read from this file 
 | 
Journal | 
getJournal()
Get property  
journal. | 
JournalingFileSystem | 
getJournalingFileSystem()
Get property  
journalingFileSystem. | 
java.lang.String | 
getName()
Get the name of this file. 
 | 
java.io.OutputStream | 
getOutputStream()
Get an output stream to write to this file. 
 | 
java.lang.String | 
getParent()
Get the parent part of the path of this file. 
 | 
VirtualFile | 
getParentFile()
Get the file representing the parent directory of this file. 
 | 
java.lang.String | 
getPath()
Get the path of this file 
 | 
VirtualFile | 
getUnderlyingFile()
Get property  
underlyingFile. | 
atg.vfs.VirtualPath | 
getVirtualPath()
Get the path of this file 
 | 
boolean | 
hasDifferentCase()
Test whether the case of this file name as stored persistently differs
 from the case of the file name used to obtain the file. 
 | 
boolean | 
isAbsolute()
Test if this file represents an absolute path. 
 | 
boolean | 
isDirectory()
Test if this file is a directory. 
 | 
boolean | 
isFile()
Test if this file is a regular file. 
 | 
long | 
lastModified()
Get the time the file was last modified in millis. 
 | 
long | 
length()
Get the length of this file in bytes. 
 | 
java.lang.String[] | 
list()
Get a list of the files in the directory specified by this file. 
 | 
java.lang.String[] | 
list(VirtualFilenameFilter pFilter)
Get a list of the files in the directory specified by this file that
 satisfy the specified filter. 
 | 
boolean | 
mkdir()
Create the directory specified by this file. 
 | 
boolean | 
mkdirs()
Create the directory specified by this file, including any necessary
 parent directories. 
 | 
boolean | 
renameTo(VirtualFile pDest)
Rename this file. 
 | 
void | 
setLastModified(long pTime)
Set the time the file was last modified. 
 | 
java.lang.String | 
toExternalForm()
Get a URL string representation of this file. 
 | 
java.lang.String | 
toString()
Get a string representation of this object. 
 | 
copyFrom, equals, getChecksumCache, getExists, getFileDescriptor, getFileSystem, getLastModified, getLength, getList, getMetadataValue, getVersion, getVFSName, hashCode, invalidateChecksum, invalidateChecksum, list, mkdirs, setAllMetadata, setMetadataValue, updateLastModInChecksumCacheclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopyFrom, getFileDescriptor, getFileSystem, getLastModified, getLength, getList, getMetadataValue, getVersion, getVFSName, list, setAllMetadata, setMetadataValuepublic JournalingFileSystem getJournalingFileSystem()
journalingFileSystem. This is
 the file system in which this journaling file lives.journalingFileSystempublic Journal getJournal()
journal. This is
 the journal where modifications are kept.journalpublic VirtualFile getUnderlyingFile()
underlyingFile. This is
 the virtual file wrapped by this journaling fileunderlyingFilepublic boolean createNewFile()
                      throws java.io.IOException
createNewFile in interface VirtualFilecreateNewFile in class atg.vfs.VirtualFileImpltrue if the file was created, else
 falsejava.io.IOException - if there is a problem creating the filepublic java.io.InputStream getInputStream()
                                   throws java.io.IOException
getInputStream in interface VirtualFilejava.io.IOException - if there is I/O troublepublic java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
getOutputStream in interface VirtualFilejava.io.IOException - if there is I/O troublepublic VirtualFile getChild(java.lang.String pName)
getChild in interface VirtualFilegetChild in class atg.vfs.VirtualFileImplpName - name of childpublic VirtualFile getChild(atg.vfs.VirtualPath pPath)
getChild in interface VirtualFilegetChild in class atg.vfs.VirtualFileImplpPath - virtual path of the child relative to thispublic java.lang.String getName()
getName in interface VirtualFilegetName in class atg.vfs.VirtualFileImplpublic atg.vfs.VirtualPath getVirtualPath()
getVirtualPath in interface VirtualFilegetVirtualPath in class atg.vfs.VirtualFileImplpublic java.lang.String getPath()
getPath in interface VirtualFilegetPath in class atg.vfs.VirtualFileImplpublic java.lang.String getAbsolutePath()
getAbsolutePath in interface VirtualFilegetAbsolutePath in class atg.vfs.VirtualFileImplpublic java.lang.String getCanonicalPath()
                                  throws java.io.IOException
getCanonicalPath in interface VirtualFilegetCanonicalPath in class atg.vfs.VirtualFileImpljava.io.IOException - if there is I/O troublepublic java.lang.String getParent()
getParent in interface VirtualFilegetParent in class atg.vfs.VirtualFileImplpublic VirtualFile getParentFile()
getParentFile in interface VirtualFilegetParentFile in class atg.vfs.VirtualFileImplnull if this file is the root
 of the file systempublic boolean exists()
exists in interface VirtualFiletrue if this file exists, else falsepublic boolean canRead()
canRead in interface VirtualFilecanRead in class atg.vfs.VirtualFileImpltrue if this file is readable, else falsepublic boolean canWrite()
canWrite in interface VirtualFiletrue if this file is writable, else falsepublic boolean isFile()
isFile in interface VirtualFileisFile in class atg.vfs.VirtualFileImpltrue if this file is a regular file, else
 falseatg.vfs.File#getPath(), 
SecurityManager.checkRead(java.lang.String)public boolean isDirectory()
isDirectory in interface VirtualFiletrue if this file is a directory, else
 falseatg.vfs.File#getPath(), 
SecurityManager.checkRead(java.lang.String)public boolean isAbsolute()
isAbsolute in interface VirtualFileisAbsolute in class atg.vfs.VirtualFileImpltrue if this file is an absolute path, else
 falseatg.vfs.File#getPath(), 
atg.vfs.File#separatorpublic long lastModified()
lastModified in interface VirtualFileatg.vfs.File#getPath(), 
SecurityManager.checkRead(java.lang.String)public void setLastModified(long pTime)
                     throws java.io.IOException
setLastModified in interface VirtualFilepTime - the time to set, in millisjava.io.IOException - if there is I/O troubleSecurityManager.checkWrite(java.lang.String)public long length()
length in interface VirtualFileatg.vfs.File#getPath(), 
SecurityManager.checkRead(java.lang.String)public boolean renameTo(VirtualFile pDest) throws JournalRuntimeException
renameTo in interface VirtualFilerenameTo in class atg.vfs.VirtualFileImplpDest - the new file name, must not be nulltrue if the rename succeeded, else
 falseJournalRuntimeException - if there was a problem adding this
 operation to the journalatg.vfs.File#getPath(), 
SecurityManager.checkWrite(java.lang.String)public boolean mkdir()
              throws JournalRuntimeException
mkdir in interface VirtualFilemkdir in class atg.vfs.VirtualFileImpltrue if the directory was created, else
 falseJournalRuntimeException - if there was a problem adding this
 operation to the journalatg.vfs.File#getPath(), 
SecurityManager.checkWrite(java.lang.String)public boolean mkdirs()
               throws JournalRuntimeException
mkdirs in interface VirtualFilemkdirs in class atg.vfs.VirtualFileImpltrue if the directory was created, else
 falseJournalRuntimeException - if there was a problem adding this
 operation to the journalatg.vfs.File#getPath(), 
SecurityManager.checkWrite(java.lang.String)public java.lang.String[] list()
list in interface VirtualFileatg.vfs.File#getPath(), 
SecurityManager.checkRead(java.lang.String)public java.lang.String[] list(VirtualFilenameFilter pFilter)
list in interface VirtualFilelist in class atg.vfs.VirtualFileImplpFilter - atg.vfs.File#getPath(), 
VirtualFilenameFilter, 
SecurityManager.checkRead(java.lang.String)public boolean delete()
               throws JournalRuntimeException
delete in interface VirtualFiledelete in class atg.vfs.VirtualFileImpltrue if the file is successfully deleted, else
 falseJournalRuntimeException - if there was a problem adding this
 delete operation to the journalatg.vfs.File#getPath(), 
SecurityManager.checkDelete(java.lang.String)public java.lang.String toExternalForm()
toExternalForm in interface VirtualFilepublic boolean hasDifferentCase()
hasDifferentCase in interface VirtualFilehasDifferentCase in class atg.vfs.VirtualFileImpltrue if the case is different from the "stored"
 case, else falsepublic long getChecksum()
                 throws java.io.IOException
getChecksum in interface VirtualFilegetChecksum in class atg.vfs.VirtualFileImpljava.io.IOExceptionpublic boolean checkOwnership()
                       throws VirtualFileSystemException
checkOwnership in interface atg.vfs.owner.OwnedFileVirtualFileSystemExceptionpublic java.lang.String toString()
toString in interface VirtualFiletoString in class atg.vfs.VirtualFileImpl