Class DefaultS3EventNotificationReader
java.lang.Object
software.amazon.awssdk.eventnotifications.s3.internal.DefaultS3EventNotificationReader
- All Implemented Interfaces:
S3EventNotificationReader
public final class DefaultS3EventNotificationReader
extends Object
implements S3EventNotificationReader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(byte[] event) Read a json formatted Amazon S3 Event Notification from a UTF-8 encoded byte array.read
(InputStream event) Read a json formatted Amazon S3 Event Notification from a UTF-8 InputStream.Read a json formatted Amazon S3 Event Notification from a UTF-8 string.
-
Constructor Details
-
DefaultS3EventNotificationReader
public DefaultS3EventNotificationReader()
-
-
Method Details
-
read
Description copied from interface:S3EventNotificationReader
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.- Specified by:
read
in interfaceS3EventNotificationReader
- Parameters:
event
- UTF-8 json of the notification.- Returns:
- S3EventNotification
-
read
Description copied from interface:S3EventNotificationReader
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.- Specified by:
read
in interfaceS3EventNotificationReader
- Parameters:
event
- UTF-8 json of the notification.- Returns:
- S3EventNotification
-
read
Description copied from interface:S3EventNotificationReader
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.- Specified by:
read
in interfaceS3EventNotificationReader
- Parameters:
event
- UTF-8 json of the notification.- Returns:
- S3EventNotification
-