| Constructor and Description |
|---|
ConverterHttp() |
ConverterHttp(String endpointURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
convert(byte[] bytesIn,
Format fromFormat,
Format toFormat,
OutputStream os)
Convert byte array fromFormat to toFormat, streaming result to OutputStream os.
|
void |
convert(byte[] bytesIn,
OutputStream os)
Convert docx byte array to PDF, streaming result to OutputStream os.
|
void |
convert(File f,
Format fromFormat,
Format toFormat,
OutputStream os)
Convert File fromFormat to toFormat, streaming result to OutputStream os.
|
void |
convert(InputStream instream,
Format fromFormat,
Format toFormat,
OutputStream os)
Convert InputStream fromFormat to toFormat, streaming result to OutputStream os.
|
protected void |
execute(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.client.methods.HttpPost httppost,
OutputStream os) |
public ConverterHttp()
public ConverterHttp(String endpointURL)
public void convert(File f, Format fromFormat, Format toFormat, OutputStream os) throws IOException, ConversionException
convert in interface Converterf - fromFormat - toFormat - os - IOExceptionConversionExceptionpublic void convert(InputStream instream, Format fromFormat, Format toFormat, OutputStream os) throws IOException, ConversionException
convert in interface Converterinstream - fromFormat - toFormat - os - IOExceptionConversionExceptionpublic void convert(byte[] bytesIn,
OutputStream os)
throws IOException,
ConversionException
bytesIn - os - IOExceptionConversionExceptionpublic void convert(byte[] bytesIn,
Format fromFormat,
Format toFormat,
OutputStream os)
throws IOException,
ConversionException
convert in interface ConverterbytesIn - fromFormat - toFormat - os - IOExceptionConversionExceptionprotected void execute(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.client.methods.HttpPost httppost,
OutputStream os)
throws org.apache.http.client.ClientProtocolException,
ConversionException
httpclient - httppost - os - IOExceptionorg.apache.http.client.ClientProtocolExceptionConversionExceptionCopyright © 2007-2022. All Rights Reserved.