public class MergedAssetWriter extends MergeWriter<com.android.ide.common.res2.AssetItem>
MergeWriter for assets, using AssetItem.MergeConsumer.ConsumerException| Constructor and Description |
|---|
MergedAssetWriter(java.io.File rootFolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(com.android.ide.common.res2.AssetItem item)
Adds an item.
|
boolean |
ignoreItemInMerge(com.android.ide.common.res2.AssetItem item) |
void |
removeItem(com.android.ide.common.res2.AssetItem removedItem,
com.android.ide.common.res2.AssetItem replacedBy)
Removes an item.
|
end, getExecutor, getRootFolder, postWriteAction, startpublic void addItem(@NonNull
com.android.ide.common.res2.AssetItem item)
throws MergeConsumer.ConsumerException
MergeConsumerDataItem.isTouched() will
indicate whether the item actually changed.item - the new item.MergeConsumer.ConsumerExceptionpublic void removeItem(@NonNull
com.android.ide.common.res2.AssetItem removedItem,
@Nullable
com.android.ide.common.res2.AssetItem replacedBy)
throws MergeConsumer.ConsumerException
MergeConsumerremovedItem - the removed item.replacedBy - the optional item that replaces the removed item.MergeConsumer.ConsumerExceptionpublic boolean ignoreItemInMerge(com.android.ide.common.res2.AssetItem item)