Package com.acumenvelocity.ath.gcs
Class AthStorage
- java.lang.Object
-
- com.acumenvelocity.ath.gcs.AthStorage
-
public class AthStorage extends Object
-
-
Constructor Summary
Constructors Constructor Description AthStorage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddeleteMany(String bucketName, String prefix)static booleanexists(URI gcsUrl)static com.google.cloud.storage.StoragegetGcs()static InputStreamgetInputStream(URI gcsUrl)static List<String>getNames(String bucketName, String prefix)static voidinit()static voidloadFile(URI gcsUrl, File file)static voidstoreFile(URI gcsUrl, String contentType, File file)
-
-
-
Method Detail
-
exists
public static boolean exists(URI gcsUrl)
-
storeFile
public static void storeFile(URI gcsUrl, String contentType, File file) throws Exception
- Throws:
Exception
-
getInputStream
public static InputStream getInputStream(URI gcsUrl) throws Exception
- Throws:
Exception
-
getGcs
public static com.google.cloud.storage.Storage getGcs()
-
getNames
public static List<String> getNames(String bucketName, String prefix) throws Exception
- Throws:
Exception
-
-