com.day.cq.widget.impl
Class AbstractBuilder
java.lang.Object
com.day.cq.widget.impl.AbstractBuilder
- All Implemented Interfaces:
- HtmlLibraryBuilder
- Direct Known Subclasses:
- CssFileBuilder, JsFileBuilder
public abstract class AbstractBuilder
- extends Object
- implements HtmlLibraryBuilder
The AbstractBuilder provides all common functionality which
is needed by its extendig classes.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBuilder
public AbstractBuilder()
build
public File build(org.apache.tools.ant.types.resources.Resources jsFiles)
throws IOException
- Description copied from interface:
HtmlLibraryBuilder
- Builds the library
- Specified by:
build in interface HtmlLibraryBuilder
- Parameters:
jsFiles - all "ant" resources which need to be included in the
generated library
- Returns:
- generated library as file
- Throws:
IOException
concatenate
protected abstract File concatenate(org.apache.tools.ant.types.resources.Resources coll)
throws IOException
- Throws:
IOException
minify
protected abstract void minify(InputStream inputStream,
OutputStream outputStream)
throws IOException
- Throws:
IOException
isDoMinify
public boolean isDoMinify()
setDoMinify
public void setDoMinify(boolean doMinify)
- Specified by:
setDoMinify in interface HtmlLibraryBuilder
setResource
public void setResource(org.apache.sling.api.resource.Resource resource)
- Specified by:
setResource in interface HtmlLibraryBuilder
getResource
public org.apache.sling.api.resource.Resource getResource()
Copyright © 2008 Day Management AG. All Rights Reserved.