Package util
Class S3Tools
java.lang.Object
util.S3Tools
AWS-SDK-touching S3 configuration, intentionally isolated from
URITools.
URITools references the AWS SDK only through this class, so loading
URITools (which happens for ANY path, e.g. toURI(...) on a local
file) no longer requires the AWS SDK on the classpath — the JVM only links the
AWS classes the first time one of these methods is actually invoked, which only
happens on a real s3:// code path.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureAnonymous(org.janelia.saalfeldlab.n5.universe.N5Factory factory, String region) Configure the factory's S3 client with anonymous credentials and an optional region.static voidconfigureRegion(org.janelia.saalfeldlab.n5.universe.N5Factory factory, String region) Configure the factory's S3 client to use the given region (credentialed path).
-
Constructor Details
-
S3Tools
public S3Tools()
-
-
Method Details
-
configureRegion
public static void configureRegion(org.janelia.saalfeldlab.n5.universe.N5Factory factory, String region) Configure the factory's S3 client to use the given region (credentialed path). -
configureAnonymous
public static void configureAnonymous(org.janelia.saalfeldlab.n5.universe.N5Factory factory, String region) Configure the factory's S3 client with anonymous credentials and an optional region.
-