org.eclipse.soda.dk.echo.connection
Class EchoConnection
java.lang.Object
org.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.connection.Connection
org.eclipse.soda.dk.echo.connection.EchoConnection
- All Implemented Interfaces:
- ConnectionService
public class EchoConnection
- extends Connection
- Version:
- 1.1.0
| 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, INTEGER_TABLE_SIZE, 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 |
|
Method Summary |
void |
close()
Close. |
void |
open()
Open. |
int |
read(byte[] bytes,
int start,
int length)
Read data into the bytes specified. |
void |
write(byte[] bytes,
int start,
int length)
Writes count bytes from the byte array
buffer starting at offset. |
| Methods inherited from class org.eclipse.soda.dk.connection.Connection |
attemptRecoveryFromError, exit, finalize, flush, getConfigurationService, getDefaultResource, getErrorSeverity, getLogDetails4, getLogDetails5, getReadByteCount, getResource, getWriteByteCount, isOpen, read, setConfigurationService, setOpen, setReadByteCount, setWriteByteCount, toStringInfo, updateReadByteCount, updateWriteByteCount, write |
| Methods inherited from class org.eclipse.soda.dk.core.EscObject |
createDefaultLogService, createException, createException, createInteger, createIntegerTable, createNumber, format, getBoolean, getCurrentTimestamp, getDefaultLogService, getFloat, getInt, getLoadLibraryName, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails2, getLogDetails3, getLogDetails6, getLogDetails7, getLogService, getLong, getObject, getOutputName, getSimpleClassName, getStaticBoolean, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticString, getString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleErrorInternal, handleStaticError, handleStaticException, isDebug, isTrace, loadService, log, log, report, report, report, report, report, report, reportError, reportSystemInfo, setDebug, setDefaultLogService, setLogService, setTraceLevel, shouldLog, sleep, startupEscStatic, toString, toStringConfigurationKeys |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EchoConnection
public EchoConnection()
- Constructs an instance of this class.
- See Also:
EchoConnection(String)
EchoConnection
public EchoConnection(java.lang.String portName)
- Parameters:
portName - The port name (String) parameter.- See Also:
EchoConnection()
close
public void close()
throws java.io.IOException
- Close.
- Specified by:
close in interface ConnectionService- Overrides:
close in class Connection
- Throws:
java.io.IOException - IOException.- See Also:
ConnectionService.close()
open
public void open()
throws java.io.IOException
- Open.
- Specified by:
open in interface ConnectionService- Overrides:
open in class Connection
- Throws:
java.io.IOException - IOException.- See Also:
ConnectionService.open()
read
public int read(byte[] bytes,
int start,
int length)
throws java.io.IOException
- Description copied from interface:
ConnectionService
- Read data into the bytes specified.
the byte array in which to store the read bytes.
the offset in
b to store the read bytes.
the maximum number of bytes to store in b.
- Parameters:
bytes - The bytes (byte[]) parameter.start - The start (int) parameter.length - The length (int) parameter.
- Returns:
- Results of the read (
int) value.
- Throws:
java.io.IOException - IOException.- See Also:
ConnectionService.read(byte[])
write
public void write(byte[] bytes,
int start,
int length)
throws java.io.IOException
- Description copied from interface:
ConnectionService
- Writes
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.
- Parameters:
bytes - The bytes (byte[]) parameter.start - The start (int) parameter.length - The length (int) parameter.
- Throws:
java.io.IOException - IOException.- See Also:
ConnectionService.write(byte[])
Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.3.1.R33x_v20070828