public abstract class Conversion
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
close()
Used by the Connectivity Framework to close this Conversion object.
|
java.lang.String |
getFileName()
The name of the file to convert.
|
abstract java.io.InputStream |
getInputStream()
Returns an I/O stream from which the file data can be read.
|
AdapterOutputType |
getOutputType()
The requested output file type for the conversion.
|
long |
getUserData()
User data associated with this conversion object.
|
abstract boolean |
isLocalFile()
Returns true if the file to convert resides on the local file system.
|
abstract int |
read(byte[] data,
int offset,
int count)
Read file data via delegate method provided by the calling program.
|
public void close()
public java.lang.String getFileName()
public AdapterOutputType getOutputType()
public long getUserData()
public abstract boolean isLocalFile()
public abstract int read(byte[] data, int offset, int count) throws java.lang.Exception
You should use either this method to access file data or the input stream. Do not use both; once you use the input stream this method may no longer return any data.
data
- Byte array to receive dataoffset
- Offset into the byte array at which data starts getting writtencount
- The number of bytes to readjava.lang.Exception
public abstract java.io.InputStream getInputStream() throws java.lang.Exception
You should use either this method to access file data or the read method. Do not use both; once you use the input stream, the read method may no longer return any data.
java.lang.Exception
- IOException if an input stream could not be created