Interface S3EventNotificationReader
-
- All Known Implementing Classes:
DefaultS3EventNotificationReader
public interface S3EventNotificationReader
Read Amazon S3 Event Notification in json format and marshal them into an instance ofS3EventNotification
.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static S3EventNotificationReader
create()
Creates a S3EventNotificationReaderS3EventNotification
read(byte[] event)
Read a json formatted Amazon S3 Event Notification from a UTF-8 encoded byte array.S3EventNotification
read(InputStream event)
Read a json formatted Amazon S3 Event Notification from a UTF-8 InputStream.S3EventNotification
read(String event)
Read a json formatted Amazon S3 Event Notification from a UTF-8 string.
-
-
-
Method Detail
-
create
static S3EventNotificationReader create()
Creates a S3EventNotificationReader- Returns:
-
read
S3EventNotification read(String event)
Read a json formatted Amazon S3 Event Notification from a UTF-8 string. Will ignores all additional fields and missing fields will be set to null.- Parameters:
event
- UTF-8 json of the notification.- Returns:
- S3EventNotification
- Throws:
software.amazon.awssdk.thirdparty.jackson.core.JsonParseException
- if json if malformed
-
read
S3EventNotification read(InputStream event)
Read a json formatted Amazon S3 Event Notification from a UTF-8 InputStream. Will ignores all additional fields and missing fields will be set to null.- Parameters:
event
- UTF-8 json of the notification.- Returns:
- S3EventNotification
- Throws:
software.amazon.awssdk.thirdparty.jackson.core.JsonParseException
- if json if malformed
-
read
S3EventNotification read(byte[] event)
Read a json formatted Amazon S3 Event Notification from a UTF-8 encoded byte array. Will ignores all additional fields and missing fields will be set to null.- Parameters:
event
- UTF-8 json of the notification.- Returns:
- S3EventNotification
- Throws:
software.amazon.awssdk.thirdparty.jackson.core.JsonParseException
- if json if malformed
-
-