@ServiceProvider(value=) public final class LocalConversionService extends AbstractLocalRpcService
| Modifier and Type | Field and Description |
|---|---|
static |
CONVERTED_FILES_STUB
Names of "canonical" files for each target conversion type.
|
static java.lang.String |
PACKAGE
The package name of this service.
|
| Constructor and Description |
|---|
LocalConversionService() |
| Modifier and Type | Method and Description |
|---|---|
ConversionResponse |
convert(Status status,
ConversionRequest request) |
java.lang.Integer |
getMaxApiRequestSize() |
java.lang.String |
getPackage() |
void |
init(LocalServiceContext context,
java.util.Map<java.lang.String,java.lang.String> properties) |
static byte[] |
readStubFile(java.lang.String outputMimeType)
Read the data out of the stub file for the specified output mime type.
|
void |
start() |
void |
stop() |
public static finalCONVERTED_FILES_STUB
public static final java.lang.String PACKAGE
public java.lang.String getPackage()
public void init(LocalServiceContext context,
java.util.Map<java.lang.String,java.lang.String> properties)
public void start()
public void stop()
public java.lang.Integer getMaxApiRequestSize()
public static byte[] readStubFile(java.lang.String outputMimeType)
throws com.google.apphosting.api.ApiProxy.ApplicationException,
java.io.IOException
outputMimeType - The output mime type.ApiProxy.ApplicationException - if failed to read the data out of
the stub file.java.io.IOException - if failed to close the InputStream to read stub file.public ConversionResponse convert(Status status,
ConversionRequest request)
throws java.io.IOException
java.io.IOException