public class Drive.Files.Export extends DriveRequest<java.lang.Void>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Export(java.lang.String fileId,
java.lang.String mimeType)
Exports a Google Doc to the requested MIME type and returns the exported content.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeMedia() |
void |
executeMediaAndDownloadTo(java.io.OutputStream outputStream) |
java.io.InputStream |
executeMediaAsInputStream() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getFileId()
The ID of the file.
|
java.lang.String |
getMimeType()
The MIME type of the format requested for this export.
|
Drive.Files.Export |
set(java.lang.String parameterName,
java.lang.Object value) |
Drive.Files.Export |
setAlt(java.lang.String alt)
Data format for the response.
|
Drive.Files.Export |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Files.Export |
setFileId(java.lang.String fileId)
The ID of the file.
|
Drive.Files.Export |
setKey(java.lang.String key)
API key.
|
Drive.Files.Export |
setMimeType(java.lang.String mimeType)
The MIME type of the format requested for this export.
|
Drive.Files.Export |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Files.Export |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Files.Export |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
Drive.Files.Export |
setUserIp(java.lang.String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected Export(java.lang.String fileId,
java.lang.String mimeType)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Drive.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
fileId - The ID of the file.mimeType - The MIME type of the format requested for this export.public void executeMediaAndDownloadTo(java.io.OutputStream outputStream)
throws java.io.IOException
executeMediaAndDownloadTo in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>java.io.IOExceptionpublic java.io.InputStream executeMediaAsInputStream()
throws java.io.IOException
executeMediaAsInputStream in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>java.io.IOExceptionpublic com.google.api.client.http.HttpResponse executeMedia()
throws java.io.IOException
executeMedia in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>java.io.IOExceptionpublic com.google.api.client.http.HttpResponse executeUsingHead()
throws java.io.IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>java.io.IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws java.io.IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>java.io.IOExceptionpublic Drive.Files.Export setAlt(java.lang.String alt)
DriveRequestsetAlt in class DriveRequest<java.lang.Void>public Drive.Files.Export setFields(java.lang.String fields)
DriveRequestsetFields in class DriveRequest<java.lang.Void>public Drive.Files.Export setKey(java.lang.String key)
DriveRequestsetKey in class DriveRequest<java.lang.Void>public Drive.Files.Export setOauthToken(java.lang.String oauthToken)
DriveRequestsetOauthToken in class DriveRequest<java.lang.Void>public Drive.Files.Export setPrettyPrint(java.lang.Boolean prettyPrint)
DriveRequestsetPrettyPrint in class DriveRequest<java.lang.Void>public Drive.Files.Export setQuotaUser(java.lang.String quotaUser)
DriveRequestsetQuotaUser in class DriveRequest<java.lang.Void>public Drive.Files.Export setUserIp(java.lang.String userIp)
DriveRequestsetUserIp in class DriveRequest<java.lang.Void>public java.lang.String getFileId()
public Drive.Files.Export setFileId(java.lang.String fileId)
public java.lang.String getMimeType()
public Drive.Files.Export setMimeType(java.lang.String mimeType)
public Drive.Files.Export set(java.lang.String parameterName, java.lang.Object value)
set in class DriveRequest<java.lang.Void>