Class DefaultS3EventNotificationReader
- java.lang.Object
-
- software.amazon.awssdk.eventnotifications.s3.internal.DefaultS3EventNotificationReader
-
- All Implemented Interfaces:
S3EventNotificationReader
@SdkInternalApi public final class DefaultS3EventNotificationReader extends Object implements S3EventNotificationReader
-
-
Constructor Summary
Constructors Constructor Description DefaultS3EventNotificationReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S3EventNotificationread(byte[] event)Read a json formatted Amazon S3 Event Notification from a UTF-8 encoded byte array.S3EventNotificationread(InputStream event)Read a json formatted Amazon S3 Event Notification from a UTF-8 InputStream.S3EventNotificationread(String event)Read a json formatted Amazon S3 Event Notification from a UTF-8 string.
-
-
-
Method Detail
-
read
public S3EventNotification read(String event)
Description copied from interface:S3EventNotificationReaderRead 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:
readin interfaceS3EventNotificationReader- Parameters:
event- UTF-8 json of the notification.- Returns:
- S3EventNotification
-
read
public S3EventNotification read(byte[] event)
Description copied from interface:S3EventNotificationReaderRead 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:
readin interfaceS3EventNotificationReader- Parameters:
event- UTF-8 json of the notification.- Returns:
- S3EventNotification
-
read
public S3EventNotification read(InputStream event)
Description copied from interface:S3EventNotificationReaderRead 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:
readin interfaceS3EventNotificationReader- Parameters:
event- UTF-8 json of the notification.- Returns:
- S3EventNotification
-
-