java.lang.Object | |
↳ | com.google.android.gms.drive.Contents |
This class is deprecated.
Use DriveContents
instead.
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
| |||||||||||||||||
![]()
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the
DriveId for the file that owns these contents. | |||||||||||
Gets an InputStream that allows you to read this file's contents.
| |||||||||||
Gets the mode the contents were opened in.
| |||||||||||
Gets an OutputStream that allows you to write new contents.
| |||||||||||
Gets a FileDescriptor that points to the Drive file's contents.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||
![]() |
Gets the DriveId
for the file that owns these contents. Will be null if these are new
contents.
Gets an InputStream that allows you to read this file's contents. This method may only be
used with files opened with MODE_READ_ONLY
; to read/write from a file
opened with MODE_READ_WRITE
, use the file descriptor returned by
getParcelFileDescriptor()
. This method may only be called once per Contents
instance.
Gets the mode the contents were opened in.
Gets an OutputStream that allows you to write new contents. This method may only be used
with files opened with MODE_WRITE_ONLY
; to read/write from a file opened
with MODE_READ_WRITE
, use the file descriptor returned by
getParcelFileDescriptor()
. This method may only be called once per Contents
instance.
Gets a FileDescriptor that points to the Drive file's contents. If this file was opened with
MODE_READ_ONLY
or MODE_READ_WRITE
, the file referenced by
the FileDescriptor will contain the most recent version of the file. Otherwise, the file will
be empty.