|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
@Beta public interface TransformOutputProvider
The output of a transform.
There is no direct access to a location to write. Instead, Transforms can ask to get the location for given scopes, content-types and a format. This API is non final and is subject to change. We are looking for feedback, and will attempt to stabilize it in the 1.6 time frame.
| Method Summary | |
|---|---|
void |
deleteAll()
Delete all content. |
File |
getContentLocation(String name,
Set<QualifiedContent.ContentType> types,
Set<QualifiedContent.Scope> scopes,
Format format)
Returns the location of content for a given set of Scopes, Content Types, and Format. |
| Method Detail |
|---|
void deleteAll()
throws IOException
IOException
@NonNull
File getContentLocation(@NonNull
String name,
@NonNull
Set<QualifiedContent.ContentType> types,
@NonNull
Set<QualifiedContent.Scope> scopes,
@NonNull
Format format)
Format.DIRECTORY then the result is the file location of the
directory.Format.JAR then the result is a file representing the jar to create.
Non of the directories or files are created by querying this method, and there is
no checks regarding the existence of content in this location.
In case of incremental processing of removed files, it is safe to query the method to get
the location of the files to removed.
name - a unique name for the content. For a given set of scopes/types/format it must
be unique.types - the content types associated with this content.scopes - the scopes associated with this content.format - the format of the content.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||