public interface IMSTFileFormat
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FileName |
static java.io.InputStream |
FileStream |
static int |
PageCount |
static int |
Size |
static java.net.URI |
Uri |
| Modifier and Type | Method and Description |
|---|---|
FileFormat |
Detect()
Gives the file format for the corresponding IMSTFileFormat object.
|
boolean |
DropDocument()
All the reference of the corresponding document are made null.
|
boolean |
Export(java.io.FileOutputStream fos,
OutputType outputtype)
Exports the file in specified output type.
|
boolean |
Export(java.io.FileOutputStream fos,
OutputType outputtype,
java.lang.String Annotations,
SAVEOPTION options)
Exports the file in specified output type.
|
boolean |
Export(java.lang.String DestFileName,
OutputType outputtype)
Exports the file in specified output type .
|
boolean |
Export(java.lang.String DestFileName,
OutputType outputtype,
java.lang.String Annotations,
SAVEOPTION options)
Exports the file in specified output type.
|
int |
getCompression()
Gives the value of compression of loaded image.
|
java.lang.String |
getFileName()
Gives the name of the file loaded into the MSTImage object.
|
java.io.InputStream |
getFileStream()
Gives the Inputstream of the file.
|
IMSTPage |
GetPage(int pageNo)
This method loads the page data into the IMSTPage object.
|
IMSTPage |
GetPage(int PageNo,
PageInfo pgInfo)
This method loads the page data into the IMSTPage object with the given parameters in PageInfo.
|
int |
getPageCount()
Gives the number of pages in the file.
|
boolean |
GetPageInfo(int[] nPageNo,
PageInfo[] pageInfo)
Gives the information about the given array of pages .
|
boolean |
GetPageInfo(int nPageNo,
PageInfo pageInfo)
Gives the information about a specific page .
|
IMSTPage[] |
GetPages(int FromPage,
int ToPage,
java.util.List<PageInfo> lstPageInfo)
This method loads the page data into the IMSTPage object with the given parameters in PageInfo.
|
int |
getSize()
Gives the size of byte array of the loaded file.
|
boolean |
Load(java.io.InputStream stream)
This method loads the image data into the MSTImage object.
|
boolean |
Load(java.lang.String FileName)
This method loads the image data into the MSTImage object.
|
boolean |
Load(java.net.URI uri)
This method loads the image data into the MSTImage object.
|
static final java.lang.String FileName
static final int PageCount
static final int Size
static final java.io.InputStream FileStream
static final java.net.URI Uri
java.lang.String getFileName()
int getSize()
int getCompression()
int getPageCount()
java.io.InputStream getFileStream()
boolean Load(java.lang.String FileName)
throws MSTException
FileName - Either name or the path of file.MSTExceptionboolean Load(java.io.InputStream stream)
throws MSTException
stream - InputStream object associated with the file that is to be loaded.MSTExceptionboolean Load(java.net.URI uri)
throws MSTException
uri - URI path of the file.MSTExceptionIMSTPage GetPage(int pageNo) throws MSTException
pageNo - page no of which the page data is to be loaded.MSTExceptionIMSTPage GetPage(int PageNo, PageInfo pgInfo) throws MSTException
pageNo - page no of which the page data is to be loaded.pgInfo - PageInfo Object having parameters as rotate,scale to be applied.MSTExceptionIMSTPage[] GetPages(int FromPage, int ToPage, java.util.List<PageInfo> lstPageInfo) throws MSTException
FromPage - Range of pages.ToPage - Range of pages.lstPageInfo - List having the PageInfo objectsMSTExceptionboolean GetPageInfo(int nPageNo,
PageInfo pageInfo)
throws MSTException
nPageNo - page no. of which the information is to be filled into the referenced PageInfo object.pageInfo - PageInfo object reference.MSTExceptionboolean GetPageInfo(int[] nPageNo,
PageInfo[] pageInfo)
throws MSTException
nPageNo - page no. of which the information is to be filled into the referenced PageInfo object.pageInfo - PageInfo object reference.MSTExceptionboolean Export(java.lang.String DestFileName,
OutputType outputtype)
throws MSTException
DestFileName - name of file in which the file is to be saved.outputtype - MIME type of file which is to be saved.MSTExceptionboolean Export(java.io.FileOutputStream fos,
OutputType outputtype)
throws MSTException
fos - streaming file in which output image is saved.outputtype - MIME type of file which is to be saved.MSTExceptionboolean Export(java.lang.String DestFileName,
OutputType outputtype,
java.lang.String Annotations,
SAVEOPTION options)
throws MSTException
DestFileName - name of file in which the file is to be saved.outputtype - MIME type of file which is to be saved.Annotations - string contains the data about annotation.options - saving options with specified output type with scaling,bitdepth,rotation,compression,annotation,pageno.MSTExceptionboolean Export(java.io.FileOutputStream fos,
OutputType outputtype,
java.lang.String Annotations,
SAVEOPTION options)
throws MSTException
fos - streaming file in which output image is saved.outputtype - MIME type of file which is to be saved.Annotations - string contains the data about annotation.options - saving options with specified output type with scaling,bitdepth,rotation,compression,annotation,pageno.MSTExceptionFileFormat Detect() throws MSTException
MSTExceptionboolean DropDocument()