@ExperimentalApi @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public static interface ServiceDeskEmailAttachmentMatcher.AttachmentContent
This is designed to provide a immutable representation of the content, so each consumer can decide how they need to access the data.
Modifier and Type | Method and Description |
---|---|
DataInput |
asDataInput()
Return the content as a
DataInput for consumption. |
ByteArrayInputStream |
asInputStream()
Return the content as a
ByteArrayInputStream for consumption. |
boolean |
contentEquals(byte[] other)
Checks that the contents of this attachment are equal to the contents of the given byte source.
|
ByteArrayInputStream asInputStream()
ByteArrayInputStream
for consumption.DataInput asDataInput()
DataInput
for consumption.boolean contentEquals(byte[] other)
This is a convenience method that may be useful for some implementations.
other
- The other byte array to compare this attachment content againstCopyright © 2024 Atlassian. All rights reserved.