Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.services.assets
Interface ResourceTransformer

    public interface ResourceTransformer

A transformer is used to read a `Resource` and pass it through a transformation stage, to get a stream that can be used on the client side. Examples of this are languages that "compile" to JavaScript, or any of a few higher-level versions of CSS that are compiled to standard CSS.

Since:
  5.3

Method Summary
`java.io.InputStream` | `transform(Resource source, ResourceDependencies dependencies)` Read the source input stream and provide a new input stream of the transformed content.

Method Detail

### transform

    java.io.InputStream transform(Resource source,
                                  ResourceDependencies dependencies)
                                  throws java.io.IOException

  Read the source input stream and provide a new input stream of the transformed content.

  Parameters:
    `source` - input content
    `dependencies` - allows additional dependencies of the source to be tracked
  Returns:
    stream of output content
  Throws:
    `java.io.IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.