| class info |
| public class Drive.Files extends java.lang.Object |
| Drive.Files class. |
| Type | Name | Desc |
| class | Drive.Files.Copy | Declaration of the Drive.Files.Copy class. |
| class | Drive.Files.Create | Declaration of the Drive.Files.Create class. |
| class | Drive.Files.Delete | Declaration of the Drive.Files.Delete class. |
| class | Drive.Files.EmptyRecycle | Declaration of the Drive.Files.EmptyRecycle class. |
| class | Drive.Files.Get | Declaration of the Drive.Files.Get class. |
| class | Drive.Files.List | Declaration of the Drive.Files.List class. |
| class | Drive.Files.Update | Declaration of the Drive.Files.Update class. |
| class | Drive.Files.Subscribe | Declaration of the Drive.Files.Subscribe class. |
| Constructor name |
Files() Constructor for the Drive.Files class. |
| Return type | Method name |
| Drive.Files.Copy | copy(String fileId, File content) Creates a copy of a file. |
| Drive.Files.Create | create(File content) Creates a folder. |
| Drive.Files.Create | create(File content, AbstractInputStreamContent mediaContent) Creates a file. |
| Drive.Files.Delete | delete(String fileId) Permanently deletes a file or folder. |
| Drive.Files.EmptyRecycle | emptyRecycle() Clears the recycle bin. |
| Drive.Files.Get | get(String fileId) Obtains file metadata. |
| Drive.Files.List | list() Lists or searches for files. |
| Drive.Files.Update | update(String fileId, File content) Updates file metadata. Currently, the file update operation is implemented on the app side. |
| Drive.Files.Update | update(String fileId, File content, AbstractInputStreamContent mediaContent) Updates file content or metadata. Currently, the file update operation is implemented on the app side. |
| Drive.Files.Subscribe | subscribe(String fileId, Channel content) Subscribes to changes of files and folders. If any change is detected, a callback notification is sent to the app. |
| constructor |
| public Drive.Files() |
| Constructs a Drive.Files object. |
| Method |
| public Drive.Files.Copy copy(String fileId, File content) throws java.io.IOException |
| Creates a copy of a file. |
Parameters
| Parameter name | Parameter desc |
| fileId | File ID. |
| content | File to be copied. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Files.Copy | A Drive.Files.Copy object. |
| Method |
public Drive.Files.Create create(File content) throws java.io.IOException |
| Creates a folder. |
Parameters
| Parameter name | Parameter desc |
| content | File object. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Files.Create | A Drive.Files.Create object. |
| Method |
public Drive.Files.Create create(File content, AbstractInputStreamContent mediaContent) throws java.io.IOException |
| Creates a file. |
Parameters
| Parameter name | Parameter desc |
| content | File object. |
| mediaContent | Media data flow. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Files.Create | A Drive.Files.Create object. |
| Method |
public Drive.Files.Delete delete(String fileId) throws java.io.IOException |
| Permanently deletes a file or folder. |
Parameters
| Parameter name | Parameter desc |
| fileId | File ID, which is returned when a file list is obtained through the Files.list API. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Files.Delete | A Drive.Files.Delete object. |
| Method |
public Drive.Files.EmptyRecycle emptyRecycle() throws java.io.IOException |
| Clears the recycle bin. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Files.EmptyRecycle | A Drive.Files.EmptyRecycle object. |
| Method |
public Drive.Files.Get get(String fileId) throws java.io.IOException |
| Obtains file metadata. |
Parameters
| Parameter name | Parameter desc |
| fileId | File ID, which is returned when a file list is obtained through the Files.list API. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Files.Get | A Drive.Files.Get object. |
| Method |
public Drive.Files.List list() throws java.io.IOException |
| Obtains the list of files. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Files.List | A Drive.Files.List object. |
| Method |
public Drive.Files.Update update(String fileId, File content) throws java.io.IOException |
| Updates file metadata. Currently, the file update operation is implemented on the app side. |
Parameters
| Parameter name | Parameter desc |
| fileId | File ID, which is returned when a file list is obtained through the Files.list API. |
| content | File object. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Files.Update | A Drive.Files.Update object. |
| Method |
public Drive.Files.Update update(String fileId, File content, AbstractInputStreamContent mediaContent) throws java.io.IOException |
| Updates file content or metadata. Currently, the file update operation is implemented on the app side. |
Parameters
| Parameter name | Parameter desc |
| fileId | File ID, which is returned when a file list is obtained through the Files.list API. |
| content | File object. |
| mediaContent | Media data. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Files.Update | A Drive.Files.Update object. |
| Method |
public Drive.Files.Subscribe subscribe(String fileId, Channel content) throws java.io.IOException |
| Subscribes to changes of files and folders. If any change is detected, a callback notification is sent to the app. |
Parameters
| Parameter name | Parameter desc |
| fileId | File ID. |
| content | Channel to be subscribed. (You can set this parameter based on the definition of the Channel object.) |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Files.Subscribe | A Drive.Files.Subscribe object. |