|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.connection.Connection
org.eclipse.soda.dk.connection.StreamConnection
public class StreamConnection
The StreamConnection class implements the ConnectionService interface.
EscObject,
ConnectionService| Field Summary |
|---|
| Fields inherited from class org.eclipse.soda.dk.connection.Connection |
|---|
CLIENT_WAIT_RESOURCE, CLOSE_RESOURCE, CLOSED_RESOURCE, configurationService, OPEN_RESOURCE, OPENFAILED_RESOURCE, READ_BYTES_RESOURCE, WRITE_BYTES_RESOURCE |
| Fields inherited from class org.eclipse.soda.dk.core.EscObject |
|---|
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
| Fields inherited from interface org.eclipse.soda.dk.connection.service.ConnectionService |
|---|
CONNECTION_KEY, DEFAULT_CONNECTION, SERVICE_NAME |
| Constructor Summary | |
|---|---|
StreamConnection()
|
|
| Method Summary | |
|---|---|
void |
close()
Perform the close action method. |
void |
flush()
Flush any data to be written. |
protected java.io.InputStream |
getInputStream()
Gets the input stream value. |
protected java.io.OutputStream |
getOutputStream()
Gets the output stream value. |
int |
read(byte[] bytes)
Read bytes. |
int |
read(byte[] bytes,
int offset,
int length)
Read bytes. |
void |
setInputStream(java.io.InputStream inputStream)
Sets the input stream value. |
void |
setOutputStream(java.io.OutputStream outputStream)
Sets the output stream value. |
void |
write(byte[] bytes)
Writes count bytes from the byte array
buffer starting at offset. |
void |
write(byte[] bytes,
int offset,
int count)
Writes count bytes from the byte array
buffer starting at offset. |
| Methods inherited from class org.eclipse.soda.dk.connection.Connection |
|---|
attemptRecoveryFromError, exit, finalize, getConfigurationService, getDefaultResource, getErrorSeverity, getResource, isOpen, open, setConfigurationService, setOpen |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.connection.service.ConnectionService |
|---|
exit, isOpen, open |
| Constructor Detail |
|---|
public StreamConnection()
| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface ConnectionServiceclose in class Connectionjava.io.IOExceptionConnectionService.close()
public void flush()
throws java.io.IOException
flush in interface ConnectionServiceflush in class Connectionjava.io.IOExceptionprotected java.io.InputStream getInputStream()
InputStream) value.setInputStream(InputStream)protected java.io.OutputStream getOutputStream()
OutputStream) value.setOutputStream(OutputStream)
public int read(byte[] bytes)
throws java.io.IOException
read in interface ConnectionServiceread in class Connectionbytes - The bytes (byte[]) parameter.
java.io.IOExceptionread(byte[],int,int)
public int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
b to store the read bytes.
the maximum number of bytes to store in b.
read in interface ConnectionServicebytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
java.io.IOExceptionread(byte[])public void setInputStream(java.io.InputStream inputStream)
InputStream) parameter.
inputStream - The input stream (InputStream) parameter.getInputStream()public void setOutputStream(java.io.OutputStream outputStream)
OutputStream) parameter.
outputStream - The output stream (OutputStream) parameter.getOutputStream()
public void write(byte[] bytes)
throws java.io.IOException
count bytes from the byte array
buffer starting at offset.
the buffer to be written
an error occurs attempting to write to this OutputStream.
If offset or count are outside of bounds.
write in interface ConnectionServicewrite in class Connectionbytes - The bytes (byte[]) parameter.
java.io.IOExceptionwrite(byte[],int,int)
public void write(byte[] bytes,
int offset,
int count)
throws java.io.IOException
count bytes from the byte array
buffer starting at offset.
the buffer to be written
offset in buffer to get bytes
number of bytes in buffer to write
an error occurs attempting to write to this OutputStream.
If offset or count are outside of bounds.
write in interface ConnectionServicebytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.count - The count (int) parameter.
java.io.IOExceptionwrite(byte[])
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||