interface JarInput : QualifiedContent
A QualifiedContent
of type jar.
This means the getFile()
is the jar file containing the content.
This also contains the incremental state of the jar file, if the transform is in incremental mode through getStatus()
.
For a transform to run in incremental mode:
If the transform is not in incremental mode,
getStatus()
always returns
Status#NOTCHANGED
.
Summary
Public methods
|
abstract Status |
|
Inherited functions
|
From class QualifiedContent
MutableSet<QualifiedContent.ContentType!> |
getContentTypes()
Returns the type of content that the stream represents.
Even though this may return only DefaultContentType#RESOURCES or DefaultContentType#CLASSES , the actual content (the folder or the jar) may contain files representing other content types. This is because the transform mechanism avoids duplicating files around to remove unwanted types for performance.
For each input, transforms should always take care to read and process only the files associated with the types returned by this method.
|
File |
getFile()
Returns he location of the content.
|
String |
getName()
Returns the name of the content. Can be used to differentiate different content using the same scope. This is not reliably usable at every stage of the transformations, but can be used for logging for instance.
|
MutableSet<in QualifiedContent.Scope!> |
getScopes()
Returns the scope of the content.
|
|
Public methods
getStatus
@NonNull abstract fun getStatus(): Status
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2020-10-12 UTC.
[null,null,["Last updated 2020-10-12 UTC."],[],[]]