Modifier and Type | Method and Description |
---|---|
boolean |
canRead()
Checks if this file can be read from (eg.
|
Aggregate |
getAggregate()
Returns the artifacts node of this file or
null if it's
transient |
java.lang.String |
getAggregatePath() |
Artifact |
getArtifact()
Returns the underlying artifact for this os file.
|
VaultFile |
getChild(java.lang.String name)
Returns the child with the given name or
null |
java.util.Collection<? extends VaultFile> |
getChildren()
Returns a collection of the children
|
java.lang.String |
getContentType()
Returns the content type of this file or
null if the type
cannot be determined or if it's a directory. |
Aggregate |
getControllingAggregate()
Returns the aggregate that controls this file.
|
VaultFileSystem |
getFileSystem()
Returns the underlying file system.
|
java.lang.String |
getName()
Returns the name of this file.
|
VaultFile |
getParent()
Returns the parent file or
null if this is the root file. |
java.lang.String |
getPath()
Returns the os path
|
java.util.Collection<? extends VaultFile> |
getRelated()
Returns the os file set for this file.
|
java.lang.String |
getRepoRelPath() |
void |
invalidate() |
boolean |
isDirectory()
Checks if this file is a directory.
|
boolean |
isTransient()
Checks if this file is transient.
|
long |
lastModified()
Returns the last modified date or
0 if not known. |
long |
length()
Returns the length of the serialized data if it's known without doing the
actual serialization.
|
java.lang.String getPath()
java.lang.String getRepoRelPath()
java.lang.String getAggregatePath()
java.lang.String getName()
Artifact getArtifact()
null
is returned.null
.boolean isDirectory()
true
if this file is a directory.boolean isTransient()
true
if this file is transientVaultFile getParent() throws java.io.IOException, RepositoryException
null
if this is the root file.java.io.IOException
- if an I/O error occurs.RepositoryException
- if a repository error occurs.Aggregate getAggregate()
null
if it's
transientAggregate getControllingAggregate()
VaultFile getChild(java.lang.String name) throws RepositoryException
null
name
- the name of the childnull
RepositoryException
- if an error occursjava.util.Collection<? extends VaultFile> getChildren() throws RepositoryException
RepositoryException
- if an error occursjava.util.Collection<? extends VaultFile> getRelated() throws RepositoryException
RepositoryException
- if an error occurs.boolean canRead()
true
if this file can be read from.long lastModified()
0
if not known.0
long length()
-1
if the length cannot be determined.java.lang.String getContentType()
null
if the type
cannot be determined or if it's a directory.null
.VaultFileSystem getFileSystem()
void invalidate() throws RepositoryException
RepositoryException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"