| Constructor and Description |
|---|
ConverterHttp() |
ConverterHttp(java.lang.String endpointURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
convert(byte[] bytesIn,
Format fromFormat,
Format toFormat,
java.io.OutputStream os)
Convert byte array fromFormat to toFormat, streaming result to OutputStream os.
|
void |
convert(byte[] bytesIn,
java.io.OutputStream os)
Convert docx byte array to PDF, streaming result to OutputStream os.
|
void |
convert(java.io.File f,
Format fromFormat,
Format toFormat,
java.io.OutputStream os)
Convert File fromFormat to toFormat, streaming result to OutputStream os.
|
void |
convert(java.io.InputStream instream,
Format fromFormat,
Format toFormat,
java.io.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,
java.io.OutputStream os) |
public ConverterHttp()
public ConverterHttp(java.lang.String endpointURL)
public void convert(java.io.File f,
Format fromFormat,
Format toFormat,
java.io.OutputStream os)
throws java.io.IOException,
ConversionException
convert in interface Converterf - fromFormat - toFormat - os - java.io.IOExceptionConversionExceptionpublic void convert(java.io.InputStream instream,
Format fromFormat,
Format toFormat,
java.io.OutputStream os)
throws java.io.IOException,
ConversionException
convert in interface Converterinstream - fromFormat - toFormat - os - java.io.IOExceptionConversionExceptionpublic void convert(byte[] bytesIn,
java.io.OutputStream os)
throws java.io.IOException,
ConversionException
bytesIn - os - java.io.IOExceptionConversionExceptionpublic void convert(byte[] bytesIn,
Format fromFormat,
Format toFormat,
java.io.OutputStream os)
throws java.io.IOException,
ConversionException
convert in interface ConverterbytesIn - fromFormat - toFormat - os - java.io.IOExceptionConversionExceptionprotected void execute(org.apache.http.impl.client.CloseableHttpClient httpclient,
org.apache.http.client.methods.HttpPost httppost,
java.io.OutputStream os)
throws org.apache.http.client.ClientProtocolException,
ConversionException
httpclient - httppost - os - java.io.IOExceptionorg.apache.http.client.ClientProtocolExceptionConversionExceptionCopyright © 2007–2023. All rights reserved.