Package com.mindee.input
Class LocalInputSource
- java.lang.Object
-
- com.mindee.input.LocalInputSource
-
public final class LocalInputSource extends Object
A source document for Mindee API operations.
-
-
Constructor Summary
Constructors Constructor Description LocalInputSource(byte[] fileAsByteArray, String filename)
LocalInputSource(File file)
LocalInputSource(InputStream file, String filename)
LocalInputSource(String filePath)
LocalInputSource(String fileAsBase64, String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compress()
void
compress(Integer quality)
void
compress(Integer quality, Integer maxWidth)
void
compress(Integer quality, Integer maxWidth, Integer maxHeight)
void
compress(Integer quality, Integer maxWidth, Integer maxHeight, Boolean forceSourceText)
void
compress(Integer quality, Integer maxWidth, Integer maxHeight, Boolean forceSourceText, Boolean disableSourceText)
byte[]
getFile()
String
getFilename()
boolean
hasSourceText()
boolean
isPdf()
-
-
-
Constructor Detail
-
LocalInputSource
public LocalInputSource(InputStream file, String filename) throws IOException
- Throws:
IOException
-
LocalInputSource
public LocalInputSource(String filePath) throws IOException
- Throws:
IOException
-
LocalInputSource
public LocalInputSource(File file) throws IOException
- Throws:
IOException
-
LocalInputSource
public LocalInputSource(byte[] fileAsByteArray, String filename)
-
-
Method Detail
-
isPdf
public boolean isPdf()
-
hasSourceText
public boolean hasSourceText()
-
compress
public void compress(Integer quality, Integer maxWidth, Integer maxHeight, Boolean forceSourceText, Boolean disableSourceText) throws IOException
- Throws:
IOException
-
compress
public void compress(Integer quality, Integer maxWidth, Integer maxHeight, Boolean forceSourceText) throws IOException
- Throws:
IOException
-
compress
public void compress(Integer quality, Integer maxWidth, Integer maxHeight) throws IOException
- Throws:
IOException
-
compress
public void compress(Integer quality, Integer maxWidth) throws IOException
- Throws:
IOException
-
compress
public void compress(Integer quality) throws IOException
- Throws:
IOException
-
compress
public void compress() throws IOException
- Throws:
IOException
-
getFile
public byte[] getFile()
-
getFilename
public String getFilename()
-
-