
public abstract class AbstractLinker extends Linker
| Constructor and Description |
|---|
AbstractLinker() |
| Modifier and Type | Method and Description |
|---|---|
protected SyntheticArtifact |
emitBytes(TreeLogger logger,
byte[] what,
String partialPath)
A helper method to create an artifact from an array of bytes.
|
protected SyntheticArtifact |
emitBytes(TreeLogger logger,
byte[] what,
String partialPath,
long lastModified)
A helper method to create an artifact from an array of bytes.
|
protected SyntheticArtifact |
emitInputStream(TreeLogger logger,
InputStream what,
String partialPath)
A helper method to create an artifact to emit the contents of an
InputStream.
|
protected SyntheticArtifact |
emitInputStream(TreeLogger logger,
InputStream what,
String partialPath,
long lastModified)
A helper method to create an artifact to emit the contents of an
InputStream.
|
protected SyntheticArtifact |
emitString(TreeLogger logger,
String what,
String partialPath)
A helper method to create an artifact to emit a String.
|
protected SyntheticArtifact |
emitString(TreeLogger logger,
String what,
String partialPath,
long lastModified)
A helper method to create an artifact to emit a String.
|
protected SyntheticArtifact |
emitWithStrongName(TreeLogger logger,
byte[] what,
String prefix,
String suffix)
A helper method to create an artifact from an array of bytes with a strong
name.
|
protected SyntheticArtifact |
emitWithStrongName(TreeLogger logger,
byte[] what,
String prefix,
String suffix,
long lastModified)
A helper method to create an artifact from an array of bytes with a strong
name.
|
getDescription, isShardable, link, link, relink, supportsDevModeInJunitprotected final SyntheticArtifact emitBytes(TreeLogger logger, byte[] what, String partialPath) throws UnableToCompleteException
logger - a TreeLoggerwhat - the data to emitpartialPath - the partial path of the resourceUnableToCompleteExceptionprotected final SyntheticArtifact emitBytes(TreeLogger logger, byte[] what, String partialPath, long lastModified) throws UnableToCompleteException
logger - a TreeLoggerwhat - the data to emitpartialPath - the partial path of the resourcelastModified - the last modified time of the new artifactUnableToCompleteExceptionprotected final SyntheticArtifact emitInputStream(TreeLogger logger, InputStream what, String partialPath) throws UnableToCompleteException
logger - a TreeLoggerwhat - the source InputStreampartialPath - the partial path of the emitted resourceUnableToCompleteExceptionprotected final SyntheticArtifact emitInputStream(TreeLogger logger, InputStream what, String partialPath, long lastModified) throws UnableToCompleteException
logger - a TreeLoggerwhat - the source InputStreampartialPath - the partial path of the emitted resourcelastModified - the last modified time of the new artifactUnableToCompleteExceptionprotected final SyntheticArtifact emitString(TreeLogger logger, String what, String partialPath) throws UnableToCompleteException
logger - a TreeLoggerwhat - the contents of the Artifact to emitpartialPath - the partial path of the emitted resourceUnableToCompleteExceptionprotected final SyntheticArtifact emitString(TreeLogger logger, String what, String partialPath, long lastModified) throws UnableToCompleteException
logger - a TreeLoggerwhat - the contents of the Artifact to emitpartialPath - the partial path of the emitted resourcelastModified - the last modified time of the new artifactUnableToCompleteExceptionprotected final SyntheticArtifact emitWithStrongName(TreeLogger logger, byte[] what, String prefix, String suffix) throws UnableToCompleteException
logger - a TreeLoggerwhat - the data to emitprefix - a non-null string to prepend to the hash to determine the
Artifact's partial pathsuffix - a non-null string to append to the hash to determine the
Artifact's partial pathUnableToCompleteExceptionprotected final SyntheticArtifact emitWithStrongName(TreeLogger logger, byte[] what, String prefix, String suffix, long lastModified) throws UnableToCompleteException
logger - a TreeLoggerwhat - the data to emitprefix - a non-null string to prepend to the hash to determine the
Artifact's partial pathsuffix - a non-null string to append to the hash to determine the
Artifact's partial pathlastModified - the last modified time of the new artifactUnableToCompleteExceptionCopyright © 2018. All rights reserved.