public class DirectoryArtifact extends java.lang.Object implements ExportArtifact, ImportArtifact
| Constructor and Description |
|---|
DirectoryArtifact(java.lang.String name)
Constructs a new directory type artifact with the given repository name.
|
DirectoryArtifact(java.lang.String name,
java.lang.String extension)
Constructs a new directory type artifact with the given repository name
and extension
|
| Modifier and Type | Method and Description |
|---|---|
void |
dump(DumpContext ctx,
boolean isLast)
Dumps some human readable information using the given context.
|
long |
getContentLength()
Returns the length of the serialized data if it's known without doing the
actual serialization.
|
java.lang.String |
getContentType()
Returns the content type of the serialized data or
null if
the type is not known or cannot be determined. |
java.lang.String |
getExtension()
Returns the (repository) extension of this artifact.
|
VaultInputSource |
getInputSource()
Returns an input source to the contents of this artifact.
|
java.io.InputStream |
getInputStream()
Returns the input stream to the contents of this artifact.
|
long |
getLastModified()
Returns the last modified date or
0 if not known. |
java.lang.String |
getPlatformPath()
Returns the relative path of this artifact in platform format including
the extension.
|
AccessType |
getPreferredAccess()
Returns the preferred access value for this artifact.
|
java.lang.String |
getRelativePath()
Returns the relative (repository) path of this artifact in respect to
it's parent node.
|
SerializationType |
getSerializationType()
Returns the serialization type of this artifact.
|
ArtifactType |
getType()
Returns the type of this artifact.
|
void |
spool(java.io.OutputStream out)
Writes the content to the given output stream and closes it afterwards.
|
public DirectoryArtifact(java.lang.String name)
name - the repository name for this artifact.public DirectoryArtifact(java.lang.String name,
java.lang.String extension)
name - the repository name for this artifact.extension - the extension for this artifactpublic SerializationType getSerializationType()
getSerializationType in interface Artifactpublic AccessType getPreferredAccess()
getPreferredAccess in interface ArtifactAccessType.NONEpublic void spool(java.io.OutputStream out)
throws java.io.IOException,
RepositoryException
public java.io.InputStream getInputStream()
throws java.io.IOException,
RepositoryException
getInputStream in interface Artifactjava.io.IOException - if an I/O error occursRepositoryException - if a repository error occurspublic VaultInputSource getInputSource() throws java.io.IOException, RepositoryException
AccessType.STREAM.getInputSource in interface Artifactjava.io.IOException - if an I/O error occurs.RepositoryException - of a repository error occurs.public long getContentLength()
getContentLength in interface Artifact-1 if the length cannot be determined.public long getLastModified()
0 if not known.getLastModified in interface Artifact0public java.lang.String getPlatformPath()
ArtifactgetPlatformPath in interface Artifactpublic java.lang.String getExtension()
ArtifactgetExtension in interface Artifactpublic java.lang.String getRelativePath()
ArtifactgetRelativePath in interface Artifactpublic ArtifactType getType()
Artifactpublic java.lang.String getContentType()
Artifactnull if
the type is not known or cannot be determined.getContentType in interface Artifactnull.public void dump(DumpContext ctx, boolean isLast)
Dumpable"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"