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
IOException
public InputStream get(String bucket, String path) throws IOException
IOException
public void delete(String bucket, String path) throws IOException
IOException
public long size(String bucket, String path) throws IOException
IOException
public String version(String bucket, String path) throws IOException
IOException
Copyright © 2011–2017. All rights reserved.