# TransformOutputProvider

# TransformOutputProvider

<br />

```
public interface TransformOutputProvider
```

<br />

*** ** * ** ***

| **This interface is deprecated.**   

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.

## Summary

|                                        ### Public methods                                         |
|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `abstract void`                                                                                   | [deleteAll](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/transform/TransformOutputProvider#deleteAll())`()` Delete all content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `abstract `[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html) | [getContentLocation](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/transform/TransformOutputProvider#getContentLocation(java.lang.String,java.util.Set<com.android.build.api.transform.QualifiedContent.ContentType>,java.util.Set<? super com.android.build.api.transform.QualifiedContent.Scope>,com.android.build.api.transform.Format))`(` ` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` name,` ` `[Set](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Set.html)`<`[QualifiedContent.ContentType](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/transform/QualifiedContent.ContentType)`> types,` ` `[Set](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Set.html)`<`[Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)`> scopes,` ` `[Format](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/transform/Format)` format` `)` **This method is deprecated.** |

## Public methods

### deleteAll

```
abstract void deleteAll()
```

Delete all content. This is useful when running in non-incremental mode  

|                                                    Throws                                                    |
|--------------------------------------------------------------------------------------------------------------|--------------------------------|
| [java.io.IOException](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/IOException.html) | if deleting the output failed. |

### getContentLocation

```
abstract File getContentLocation(
    String name,
    Set<QualifiedContent.ContentType> types,
    Set<Object> scopes,
    Format format
)
```
| **This method is deprecated.**   

Returns the location of content for a given set of Scopes, Content Types, and Format.

If the format is[DIRECTORY](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/transform/Format#DIRECTORY)then the result is the file location of the directory. If the format is[JAR](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/transform/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.  

|                                                                                                                            Parameters                                                                                                                            |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|
| [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` name`                                                                                                                                                              | a unique name for the content. For a given set of scopes/types/format it must be unique. |
| [Set](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Set.html)`<`[QualifiedContent.ContentType](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/transform/QualifiedContent.ContentType)`> types` | the content types associated with this content.                                          |
| [Set](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Set.html)`<`[Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)`> scopes`                                                                  | the scopes associated with this content.                                                 |
| [Format](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/transform/Format)` format`                                                                                                                                      | the format of the content.                                                               |

|                                        Returns                                         |
|----------------------------------------------------------------------------------------|------------------------------|
| [File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html) | the location of the content. |