Migrate AWS SDK v1 IOUtils, StringUtils, Base64 and StringInputStream

Apache 2.0

Replaces com.amazonaws.util helpers, which have no v2-migration mapping: IOUtils.toByteArray/toString become InputStream.readAllBytes() on Java 9+ and v2 IoUtils otherwise, IOUtils.copy and drainInputStream become v2 IoUtils (identical bodies), StringUtils.isNullOrEmpty/hasValue/join become v2 StringUtils.isEmpty and String.join, Base64 becomes java.util.Base64, and StringInputStream becomes v2's identical class. The other StringUtils conversions, fromDate with a literal format and IOUtils.closeQuietly/release become the JDK or v2 utils calls their v1 bodies make.

org.openrewrite.aws.sdk.MigrateAwsSdkV1IoAndStringUtils
mod run . --recipe=org.openrewrite.aws.sdk.MigrateAwsSdkV1IoAndStringUtils

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.