public class DataTarget
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.io.OutputStream |
stream
Normalized output stream
|
Constructor and Description |
---|
DataTarget(character type,
character target)
Constructor.
|
DataTarget(character type,
handle target)
Constructor.
|
DataTarget(character type,
java.lang.String target)
Constructor.
|
DataTarget(longchar target)
Constructor.
|
DataTarget(memptr target)
Constructor.
|
DataTarget(java.lang.String type,
character target)
Constructor.
|
DataTarget(java.lang.String type,
handle target)
Constructor.
|
DataTarget(java.lang.String type,
java.lang.String target)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
close()
Close the output stream underlying this data source.
|
java.io.OutputStream |
getOutputStream()
Get the output stream representing the target resource to which data will be written.
|
private void |
initializeRemote(java.lang.String type,
handle target)
Initialize a remote stream handle or handle resource as an output stream.
|
private void |
initializeRemote(java.lang.String type,
java.lang.String name)
Initialize a remote file or stream resource as an output stream.
|
public DataTarget(character type, character target)
type
- FILE
or STREAM
.target
- Name of a file or stream to which data is written.public DataTarget(java.lang.String type, character target)
type
- FILE
or STREAM
.target
- Name of a file or stream to which data is written.public DataTarget(character type, java.lang.String target)
type
- FILE
or STREAM
.target
- Name of a file or stream to which data is written.public DataTarget(java.lang.String type, java.lang.String target)
type
- FILE
or STREAM
.target
- Name of a file or stream to which data is written.public DataTarget(memptr target)
target
- Pointer to an area of memory into which data is written.public DataTarget(character type, handle target)
type
- STREAM-HANDLE
or HANDLE
.target
- Handle of a stream object or X-document/X-noderef object into which to write data.public DataTarget(java.lang.String type, handle target)
type
- STREAM-HANDLE
or HANDLE
.target
- Handle of a stream object or X-document/X-noderef object into which to write data.public DataTarget(longchar target)
target
- Variable into which to write data.public java.io.OutputStream getOutputStream()
void close() throws java.io.IOException
java.io.IOException
- if there is an error closing the stream.private void initializeRemote(java.lang.String type, java.lang.String name)
The stream resource is unimplemented currently.
type
- Type of output resource: FILE or STREAM.name
- The name of the resource (path for a file; name for a stream).private void initializeRemote(java.lang.String type, handle target)
Both types are unimplemented features currently.
type
- Type of output resource: STREAM-HANDLE or HANDLE.target
- The handle to the resource.