public class ConverterNeedOutputStreamEvent extends ConverterEvent
ConverterListener
requires a stream to save a converted document.Constructor and Description |
---|
ConverterNeedOutputStreamEvent(Object source,
ConverterJobInfoEvent jobInfo,
OutputStream outputStream,
String fileExtension,
int inputDocumentIndex,
int inputPageNumber) |
Modifier and Type | Method and Description |
---|---|
String |
getFileExtension() |
int |
getInputDocumentIndex()
Returns index of the current document in the conversion job.
|
int |
getInputPageNumber()
Returns number of the current page that was converted.
|
OutputStream |
getOutputStream()
Returns the stream set for saving the converted document.
|
void |
setOutputStream(OutputStream outputStream)
Specifies a stream for saving the converted document.
|
getJobInfo, isCancel, setCancel
getSource, toString
public ConverterNeedOutputStreamEvent(Object source, ConverterJobInfoEvent jobInfo, OutputStream outputStream, String fileExtension, int inputDocumentIndex, int inputPageNumber)
public OutputStream getOutputStream()
public void setOutputStream(OutputStream outputStream)
outputStream
- stream for saving the converted documentpublic String getFileExtension()
public int getInputDocumentIndex()
public int getInputPageNumber()