public class SyntheticArtifact extends EmittedArtifact
AbstractLinker
.EmittedArtifact.Visibility
Constructor and Description |
---|
SyntheticArtifact(Class<? extends Linker> linkerType,
String partialPath,
byte[] data) |
SyntheticArtifact(Class<? extends Linker> linkerType,
String partialPath,
byte[] data,
long lastModified) |
Modifier and Type | Method and Description |
---|---|
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,
OutputStream out)
Provides access to the contents of the EmittedResource.
|
compareToComparableArtifact, getComparableArtifactType, getPartialPath, getVisibility, hashCode, setVisibility, toString
compareTo, equals, getLinker, isTransferableFromShards
$isInstance
public SyntheticArtifact(Class<? extends Linker> linkerType, String partialPath, byte[] data)
public InputStream getContents(TreeLogger logger) throws UnableToCompleteException
EmittedArtifact
getContents
in class EmittedArtifact
UnableToCompleteException
public long getLastModified()
EmittedArtifact
The default implementation always returns the current time. Subclasses should override this method to provide a type-appropriate value.
getLastModified
in class EmittedArtifact
public void writeTo(TreeLogger logger, OutputStream out) throws UnableToCompleteException
EmittedArtifact
writeTo
in class EmittedArtifact
UnableToCompleteException
Copyright © 2018. All rights reserved.