public interface Descriptor
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAnnotations()
Return the (possibly empty) list of annotations in the format
"@key( value)*". |
java.io.File |
getDescriptorFile()
Return the file, tarball or plain file, that contained this descriptor, or
null if this descriptor was not read from a file. |
byte[] |
getRawDescriptorBytes()
Return the raw descriptor bytes.
|
int |
getRawDescriptorLength()
Return the raw descriptor length in bytes.
|
java.util.List<java.lang.String> |
getUnrecognizedLines()
Return any unrecognized lines when parsing this descriptor, or an
empty list if there were no unrecognized lines.
|
byte[] getRawDescriptorBytes()
This method creates a new copy of raw descriptor bytes from a
potentially larger byte array containing multiple descriptors.
Applications that only want to learn about raw descriptor length in bytes
should instead use getRawDescriptorLength().
int getRawDescriptorLength()
Returns the exact same result as getRawDescriptorBytes().length,
but much more efficiently.
java.util.List<java.lang.String> getAnnotations()
"@key( value)*".
Some implementations might not support this operation and will throw an
UnsupportedOperationException, e.g.,
UnparseableDescriptor.
java.util.List<java.lang.String> getUnrecognizedLines()
Some implementations might not support this operation and will throw an
UnsupportedOperationException, e.g.,
UnparseableDescriptor.
java.io.File getDescriptorFile()
null if this descriptor was not read from a file.