public class Drive.Files.Export extends DriveRequest<java.lang.Void>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Drive.Files.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)
Available to use for quota purposes for server-side applications.
|
Drive.Files.Export |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
protected Drive.Files.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.IOException
public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException
executeMediaAsInputStream
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>
java.io.IOException
public 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.IOException
public 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.IOException
public 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.IOException
public Drive.Files.Export setAlt(java.lang.String alt)
DriveRequest
setAlt
in class DriveRequest<java.lang.Void>
public Drive.Files.Export setFields(java.lang.String fields)
DriveRequest
setFields
in class DriveRequest<java.lang.Void>
public Drive.Files.Export setKey(java.lang.String key)
DriveRequest
setKey
in class DriveRequest<java.lang.Void>
public Drive.Files.Export setOauthToken(java.lang.String oauthToken)
DriveRequest
setOauthToken
in class DriveRequest<java.lang.Void>
public Drive.Files.Export setPrettyPrint(java.lang.Boolean prettyPrint)
DriveRequest
setPrettyPrint
in class DriveRequest<java.lang.Void>
public Drive.Files.Export setQuotaUser(java.lang.String quotaUser)
DriveRequest
setQuotaUser
in class DriveRequest<java.lang.Void>
public Drive.Files.Export setUserIp(java.lang.String userIp)
DriveRequest
setUserIp
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>