public class SyntheticArtifact extends EmittedArtifact
AbstractLinker.EmittedArtifact.Visibility| Constructor and Description |
|---|
SyntheticArtifact(java.lang.Class<? extends Linker> linkerType,
java.lang.String partialPath,
byte[] data) |
SyntheticArtifact(java.lang.Class<? extends Linker> linkerType,
java.lang.String partialPath,
byte[] data,
long lastModified) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getContents(TreeLogger logger)
Provides access to the contents of the EmittedResource.
|
long |
getLastModified()
Returns the time, measured in milliseconds from the epoch, at which the
Artifact was last modified.
|
void |
writeTo(TreeLogger logger,
java.io.OutputStream out)
Provides access to the contents of the EmittedResource.
|
compareToComparableArtifact, getComparableArtifactType, getPartialPath, getVisibility, hashCode, setVisibility, toStringcompareTo, equals, getLinker, isTransferableFromShardspublic SyntheticArtifact(java.lang.Class<? extends Linker> linkerType, java.lang.String partialPath, byte[] data)
public SyntheticArtifact(java.lang.Class<? extends Linker> linkerType, java.lang.String partialPath, byte[] data, long lastModified)
public java.io.InputStream getContents(TreeLogger logger) throws UnableToCompleteException
EmittedArtifactgetContents in class EmittedArtifactUnableToCompleteExceptionpublic long getLastModified()
EmittedArtifactThe default implementation always returns the current time. Subclasses should override this method to provide a type-appropriate value.
getLastModified in class EmittedArtifactpublic void writeTo(TreeLogger logger, java.io.OutputStream out) throws UnableToCompleteException
EmittedArtifactwriteTo in class EmittedArtifactUnableToCompleteException