public class ModuleBuildReader extends Reader
Future
from
IModule.getBuild(HttpServletRequest)
. This class is merely
a wrapper for the items that, taken together, represent a module build.Constructor and Description |
---|
ModuleBuildReader(Reader reader,
boolean isScript)
Consturctor for a reader with no cache key generator and no error
|
ModuleBuildReader(Reader reader,
boolean isScript,
List<ICacheKeyGenerator> keyGens,
String error)
Constructor for a Build object specifying a reader, key generator
and error flag.
|
ModuleBuildReader(String str,
boolean isScript)
Constructor for a build reader from a string
|
Modifier and Type | Method and Description |
---|---|
void |
addExtraBuild(ModuleBuildFuture future)
Adds the specified future to the list of extra builds.
|
void |
close() |
List<ICacheKeyGenerator> |
getCacheKeyGenerators()
Returns the cache key generator for this module
|
String |
getErrorMessage() |
List<ModuleBuildFuture> |
getExtraBuilds()
Returns the list of additional futures that should be processed along with this build
this future
|
SourceMap |
getSourceMap() |
boolean |
isError()
Returns the error flag for this build.
|
boolean |
isScript() |
int |
read(char[] cbuf,
int off,
int len) |
void |
setSourceMap(SourceMap sourceMap)
Sets the source map object associated with this reader
|
public ModuleBuildReader(Reader reader, boolean isScript, List<ICacheKeyGenerator> keyGens, String error)
reader
- A Reader
to the build contentisScript
- true if the reader content is executable script codekeyGens
- The ICacheKeyGenerator
list for this IModuleerror
- If not null, then an message describing the errorpublic ModuleBuildReader(Reader reader, boolean isScript)
reader
- A Reader
to the build contentisScript
- true if the reader content is executable script codepublic ModuleBuildReader(String str, boolean isScript)
str
- the stringisScript
- true if the string contains executable script codepublic List<ICacheKeyGenerator> getCacheKeyGenerators()
public boolean isError()
public String getErrorMessage()
public boolean isScript()
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public void addExtraBuild(ModuleBuildFuture future)
future
- The future to addpublic List<ModuleBuildFuture> getExtraBuilds()
public void setSourceMap(SourceMap sourceMap)
sourceMap
- the source mappublic SourceMap getSourceMap()
Copyright © 2011-2015 IBM. All Rights Reserved.