|
2009-01-09 1.2.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 interface org.eclipse.soda.dk.connection.service.ConnectionService |
|---|
CONNECTION_DEFAULT, CONNECTION_KEY, CONNECTION_TYPE, DEFAULT_CONNECTION, SERVICE_NAME |
| Constructor Summary | |
|---|---|
StreamConnection()
Constructs an instance of this class. |
|
StreamConnection(ConfigurationService configuration)
Constructs an instance of this class from the specified configuration parameter. |
|
StreamConnection(java.util.Dictionary properties)
Constructs an instance of this class from the specified properties parameter. |
|
| 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, getLogDetails4, getLogDetails5, getLogLevel, getReadByteCount, getResource, getWriteByteCount, isOpen, open, setConfigurationInformation, setConfigurationService, setLogLevel, setOpen, setReadByteCount, setWriteByteCount, toStringInfo, updateReadByteCount, updateWriteByteCount |
| 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, setConfigurationInformation |
| Constructor Detail |
|---|
public StreamConnection(ConfigurationService configuration)
configuration - The configuration (ConfigurationService) parameter.StreamConnection(Dictionary),
StreamConnection()public StreamConnection(java.util.Dictionary properties)
properties - The properties (Dictionary) parameter.StreamConnection(ConfigurationService),
StreamConnection()public StreamConnection()
StreamConnection(ConfigurationService),
StreamConnection(Dictionary)| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface ConnectionServiceclose in class Connectionjava.io.IOException - IOException.ConnectionService.close()
public void flush()
throws java.io.IOException
flush in interface ConnectionServiceflush in class Connectionjava.io.IOException - IOException.protected 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.IOException - IOException.read(byte[],int,int)
public int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
read in interface ConnectionServicebytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
java.io.IOException - IOException.read(byte[])public void setInputStream(java.io.InputStream inputStream)
inputStream - The input stream (InputStream) parameter.getInputStream()public void setOutputStream(java.io.OutputStream outputStream)
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.
write in interface ConnectionServicewrite in class Connectionbytes - The bytes (byte[]) parameter.
java.io.IOException - IOException.write(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.
write in interface ConnectionServicebytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.count - The count (int) parameter.
java.io.IOException - IOException.write(byte[])
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||