Package com.google.gwt.core.ext.linker
Class AbstractLinker
java.lang.Object
com.google.gwt.core.ext.Linker
com.google.gwt.core.ext.linker.AbstractLinker
- Direct Known Subclasses:
 PrecompressLinker,RpcLogLinker,RpcPolicyManifestLinker,com.google.gwt.core.ext.linker.impl.SelectionScriptLinker,SymbolMapsLinker
Provides basic functions common to all Linker implementations.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected final SyntheticArtifactemitBytes(TreeLogger logger, byte[] what, String partialPath) A helper method to create an artifact from an array of bytes.protected final SyntheticArtifactemitBytes(TreeLogger logger, byte[] what, String partialPath, long lastModified) A helper method to create an artifact from an array of bytes.protected final SyntheticArtifactemitInputStream(TreeLogger logger, InputStream what, String partialPath) A helper method to create an artifact to emit the contents of an InputStream.protected final SyntheticArtifactemitInputStream(TreeLogger logger, InputStream what, String partialPath, long lastModified) A helper method to create an artifact to emit the contents of an InputStream.protected final SyntheticArtifactemitString(TreeLogger logger, String what, String partialPath) A helper method to create an artifact to emit a String.protected final SyntheticArtifactemitString(TreeLogger logger, String what, String partialPath, long lastModified) A helper method to create an artifact to emit a String.protected final SyntheticArtifactemitWithStrongName(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 final SyntheticArtifactemitWithStrongName(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.Methods inherited from class com.google.gwt.core.ext.Linker
getDescription, isShardable, link, link, relink, supportsDevModeInJunit 
- 
Constructor Details
- 
AbstractLinker
public AbstractLinker() 
 - 
 - 
Method Details
- 
emitBytes
protected final SyntheticArtifact emitBytes(TreeLogger logger, byte[] what, String partialPath) throws UnableToCompleteException A helper method to create an artifact from an array of bytes.- Parameters:
 logger- a TreeLoggerwhat- the data to emitpartialPath- the partial path of the resource- Returns:
 - an artifact that contains the given data
 - Throws:
 UnableToCompleteException
 - 
emitBytes
protected final SyntheticArtifact emitBytes(TreeLogger logger, byte[] what, String partialPath, long lastModified) throws UnableToCompleteException A helper method to create an artifact from an array of bytes.- Parameters:
 logger- a TreeLoggerwhat- the data to emitpartialPath- the partial path of the resourcelastModified- the last modified time of the new artifact- Returns:
 - an artifact that contains the given data
 - Throws:
 UnableToCompleteException
 - 
emitInputStream
protected final SyntheticArtifact emitInputStream(TreeLogger logger, InputStream what, String partialPath) throws UnableToCompleteException A helper method to create an artifact to emit the contents of an InputStream.- Parameters:
 logger- a TreeLoggerwhat- the source InputStreampartialPath- the partial path of the emitted resource- Returns:
 - an artifact that contains the contents of the InputStream
 - Throws:
 UnableToCompleteException
 - 
emitInputStream
protected final SyntheticArtifact emitInputStream(TreeLogger logger, InputStream what, String partialPath, long lastModified) throws UnableToCompleteException A helper method to create an artifact to emit the contents of an InputStream.- Parameters:
 logger- a TreeLoggerwhat- the source InputStreampartialPath- the partial path of the emitted resourcelastModified- the last modified time of the new artifact- Returns:
 - an artifact that contains the contents of the InputStream
 - Throws:
 UnableToCompleteException
 - 
emitString
protected final SyntheticArtifact emitString(TreeLogger logger, String what, String partialPath) throws UnableToCompleteException A helper method to create an artifact to emit a String.- Parameters:
 logger- a TreeLoggerwhat- the contents of the Artifact to emitpartialPath- the partial path of the emitted resource- Returns:
 - an artifact that contains the contents of the given String
 - Throws:
 UnableToCompleteException
 - 
emitString
protected final SyntheticArtifact emitString(TreeLogger logger, String what, String partialPath, long lastModified) throws UnableToCompleteException A helper method to create an artifact to emit a String.- Parameters:
 logger- a TreeLoggerwhat- the contents of the Artifact to emitpartialPath- the partial path of the emitted resourcelastModified- the last modified time of the new artifact- Returns:
 - an artifact that contains the contents of the given String
 - Throws:
 UnableToCompleteException
 - 
emitWithStrongName
protected final SyntheticArtifact emitWithStrongName(TreeLogger logger, byte[] what, String prefix, String suffix) throws UnableToCompleteException A helper method to create an artifact from an array of bytes with a strong name.- Parameters:
 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 path- Returns:
 - an artifact that contains the given data
 - Throws:
 UnableToCompleteException
 - 
emitWithStrongName
protected final SyntheticArtifact emitWithStrongName(TreeLogger logger, byte[] what, String prefix, String suffix, long lastModified) throws UnableToCompleteException A helper method to create an artifact from an array of bytes with a strong name.- Parameters:
 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 artifact- Returns:
 - an artifact that contains the given data
 - Throws:
 UnableToCompleteException
 
 -