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, supportsDevModeInJunit
protected final SyntheticArtifact emitBytes(TreeLogger logger, byte[] what, String partialPath) throws UnableToCompleteException
logger
- a TreeLoggerwhat
- the data to emitpartialPath
- the partial path of the resourceUnableToCompleteException
protected 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 artifactUnableToCompleteException
protected final SyntheticArtifact emitInputStream(TreeLogger logger, InputStream what, String partialPath) throws UnableToCompleteException
logger
- a TreeLoggerwhat
- the source InputStreampartialPath
- the partial path of the emitted resourceUnableToCompleteException
protected 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 artifactUnableToCompleteException
protected 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 resourceUnableToCompleteException
protected 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 artifactUnableToCompleteException
protected 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 pathUnableToCompleteException
protected 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 artifactUnableToCompleteException
Copyright © 2018. All rights reserved.