|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.services.drive.Drive.Files
public class Drive.Files
The "files" collection of methods.
Nested Class Summary | |
---|---|
class |
Drive.Files.Get
|
class |
Drive.Files.Insert
|
class |
Drive.Files.Patch
|
class |
Drive.Files.Update
|
Constructor Summary | |
---|---|
Drive.Files()
|
Method Summary | |
---|---|
Drive.Files.Get |
get(String id)
Gets a file's metadata by id. |
Drive.Files.Insert |
insert(File content)
Inserts a file, and any settable metadata or blob content sent with the request. |
Drive.Files.Insert |
insert(File content,
AbstractInputStreamContent mediaContent)
Inserts a file, and any settable metadata or blob content sent with the request. |
Drive.Files.Patch |
patch(String id,
File content)
Updates file metadata and/or content. |
Drive.Files.Update |
update(String id,
File content)
Updates file metadata and/or content Create a request for the method "files.update". |
Drive.Files.Update |
update(String id,
File content,
AbstractInputStreamContent mediaContent)
Updates file metadata and/or content Create a request for the method "files.update". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Drive.Files()
Method Detail |
---|
public Drive.Files.Get get(String id) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
id
- The id for the file in question.
IOException
public Drive.Files.Insert insert(File content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
content
- the File
IOException
public Drive.Files.Insert insert(File content, AbstractInputStreamContent mediaContent) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
content
- the File
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.
IOException
- if the initialization of the request failspublic Drive.Files.Patch patch(String id, File content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
id
- The id for the file in question.content
- the File
IOException
public Drive.Files.Update update(String id, File content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
id
- The id for the file in question.content
- the File
IOException
public Drive.Files.Update update(String id, File content, AbstractInputStreamContent mediaContent) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
id
- The id for the file in question.content
- the File
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.
IOException
- if the initialization of the request fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |