public class DelegateIncrementalFileMergerInput extends java.lang.Object implements IncrementalFileMergerInput
IncrementalFileMergerInput that delegates all operations to another
IncrementalFileMergerInput. This can be used as a base class for extending inputs.
This class will delegate all methods to the delegate input.| Constructor and Description |
|---|
DelegateIncrementalFileMergerInput(IncrementalFileMergerInput delegate)
Creates a new input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the object.
|
com.google.common.collect.ImmutableSet<java.lang.String> |
getAllPaths()
Obtains all OS-independent paths of all files that in this input, regardless of being changed
or not.
|
com.android.ide.common.res2.FileStatus |
getFileStatus(java.lang.String path)
Obtains the status of a path in this input.
|
java.lang.String |
getName()
Obtains the name of this input.
|
com.google.common.collect.ImmutableSet<java.lang.String> |
getUpdatedPaths()
Obtains all OS-independent paths of all files that were changed in this input.
|
void |
open()
Opens the object.
|
java.io.InputStream |
openPath(java.lang.String path)
Opens a path for reading.
|
public DelegateIncrementalFileMergerInput(@NonNull
IncrementalFileMergerInput delegate)
delegate - the delegate calls topublic void open()
OpenableCloseableopen in interface OpenableCloseablepublic void close()
OpenableCloseableclose in interface OpenableCloseable@NonNull public com.google.common.collect.ImmutableSet<java.lang.String> getUpdatedPaths()
IncrementalFileMergerInputgetUpdatedPaths in interface IncrementalFileMergerInput@NonNull public com.google.common.collect.ImmutableSet<java.lang.String> getAllPaths()
IncrementalFileMergerInputgetAllPaths in interface IncrementalFileMergerInput@NonNull public java.lang.String getName()
IncrementalFileMergerInputgetName in interface IncrementalFileMergerInput@Nullable
public com.android.ide.common.res2.FileStatus getFileStatus(@NonNull
java.lang.String path)
IncrementalFileMergerInputgetFileStatus in interface IncrementalFileMergerInputpath - the OS-independent path; the path may or not exist in the inputnull if the path does not exist in the input or
if the path has not been changed;
null is returned if and only if !getUpdatedPaths().contains(path)@NonNull
public java.io.InputStream openPath(@NonNull
java.lang.String path)
IncrementalFileMergerInputopenPath in interface IncrementalFileMergerInputpath - the pathOpenableCloseable.close() is
called