public class DirectoryArtifact extends AbstractArtifact implements ExportArtifact, ImportArtifact
| Constructor and Description |
|---|
DirectoryArtifact(String name)
Constructs a new directory type artifact with the given repository name.
|
DirectoryArtifact(String name,
String extension)
Constructs a new directory type artifact with the given repository name
and extension
|
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Returns the length of the serialized data if it's known without doing the
actual serialization.
|
VaultInputSource |
getInputSource()
Returns an input source to the contents of this artifact.
|
InputStream |
getInputStream()
Returns the input stream to the contents of this artifact.
|
long |
getLastModified()
Returns the last modified date or
0 if not known. |
AccessType |
getPreferredAccess()
Returns the preferred access value for this artifact.
|
SerializationType |
getSerializationType()
Returns the serialization type of this artifact.
|
void |
spool(OutputStream out)
Writes the content to the given output stream and closes it afterwards.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentType, getExtension, getPlatformPath, getRelativePath, getTypepublic DirectoryArtifact(String name)
name - the repository name for this artifact.public SerializationType getSerializationType()
getSerializationType in interface Artifactpublic AccessType getPreferredAccess()
getPreferredAccess in interface ArtifactAccessType.NONEpublic void spool(OutputStream out) throws IOException, RepositoryException
spool in interface Artifactout - the output stream to spool toIOException - if an I/O error occursRepositoryException - if a repository error occurspublic InputStream getInputStream() throws IOException, RepositoryException
getInputStream in interface ArtifactIOException - if an I/O error occursRepositoryException - if a repository error occurspublic VaultInputSource getInputSource() throws IOException, RepositoryException
AccessType.STREAM.getInputSource in interface ArtifactIOException - 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 Artifact0"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"