public class StandardPublicResource extends PublicResource
PublicResource
.EmittedArtifact.Visibility
Constructor and Description |
---|
StandardPublicResource(String partialPath,
Resource resource) |
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.
|
compareToComparableArtifact, getComparableArtifactType, getPartialPath, getVisibility, hashCode, isPrivate, setPrivate, setVisibility, toString, writeTo
compareTo, equals, getLinker, isTransferableFromShards
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
Copyright © 2018. All rights reserved.