public class GoogleStorage extends Object
| Constructor and Description |
|---|
GoogleStorage(com.google.api.services.storage.Storage storage) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String bucket,
String path) |
boolean |
exists(String bucket,
String path) |
InputStream |
get(String bucket,
String path) |
void |
insert(String bucket,
String path,
com.google.api.client.http.AbstractInputStreamContent mediaContent) |
long |
size(String bucket,
String path) |
String |
version(String bucket,
String path) |
public GoogleStorage(com.google.api.services.storage.Storage storage)
public void insert(String bucket, String path, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws IOException
IOExceptionpublic InputStream get(String bucket, String path) throws IOException
IOExceptionpublic void delete(String bucket, String path) throws IOException
IOExceptionpublic long size(String bucket, String path) throws IOException
IOExceptionpublic String version(String bucket, String path) throws IOException
IOExceptionCopyright © 2011–2017. All rights reserved.