public class DataSource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.io.InputStream |
stream
Normalized input stream
|
Constructor and Description |
---|
DataSource(character source)
Constructor.
|
DataSource(handle source)
Constructor.
|
DataSource(longchar source)
Constructor.
|
DataSource(memptr source)
Constructor.
|
DataSource(java.lang.String source)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
close()
Close the input stream underlying this data source.
|
java.io.InputStream |
getInputStream()
Get the input stream representing the source resource from which data will be read.
|
private void |
initializeRemote(java.lang.String filename)
Initialize the remote input stream which backs this data source.
|
public DataSource(character source)
source
- Object from which to read data.public DataSource(java.lang.String source)
source
- Object from which to read data.public DataSource(memptr source)
source
- Pointer to area of memory from which to read data.public DataSource(handle source)
source
- Handle of object from which to read data.public DataSource(longchar source)
source
- Object from which to read data.public java.io.InputStream getInputStream()
void close() throws java.io.IOException
java.io.IOException
- if there is an error closing the stream.private void initializeRemote(java.lang.String filename)
filename
- Client-side file name.