|
2008-09-10 1.1.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
org.eclipse.soda.dk.random.access.file.connection.RandomAccessFileConnection
public class RandomAccessFileConnection
Random Access File Connection. The RandomAccessFileConnection class implements the RandomAccessFileConnectionService and provides the controls for the connection.
The list of exported services:
RandomAccessFileConnectionService,
ConnectionService| Field Summary | |
|---|---|
static java.lang.String |
CLASS_NAME
Defines the full class name. |
| Fields inherited from interface org.eclipse.soda.dk.random.access.file.connection.service.RandomAccessFileConnectionService |
|---|
CONNECTION_TYPE, DEFAULT_MODE, DEFAULT_NAME, DEFAULT_PATH, FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, MODE, MODE_DEFAULT, MODE_KEY, NAME, NAME_DEFAULT, NAME_KEY, PATH, PATH_DEFAULT, PATH_KEY, RandomAccessFileConnection, SERVICE_DESCRIPTION, SERVICE_NAME |
| Constructor Summary | |
|---|---|
RandomAccessFileConnection()
Constructs a standard FileConnection object. |
|
RandomAccessFileConnection(ConfigurationService configuration)
Constructs an instance of this class from the specified configuration parameter. |
|
RandomAccessFileConnection(java.util.Dictionary properties)
|
|
RandomAccessFileConnection(java.io.RandomAccessFile randomAccessFile)
Constructs an RandomAccessFileConnection object using the input parameter(s). |
|
RandomAccessFileConnection(java.lang.String path,
java.lang.String filename,
java.lang.String mode)
|
|
| Method Summary | |
|---|---|
void |
close()
Perform the close action method. |
void |
exit()
Exit. |
java.io.RandomAccessFile |
getRandomAccessFile()
Gets the random access file value. |
void |
open()
Perform the open action method. |
int |
read(byte[] bytes,
int offset,
int length)
Read bytes. |
void |
setRandomAccessFile(java.io.RandomAccessFile randomAccessFile)
Sets the random access file value. |
void |
toStringInfo(java.lang.StringBuffer buffer)
To string info with the specified buffer parameter. |
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.StreamConnection |
|---|
flush, getInputStream, getOutputStream, read, setInputStream, setOutputStream, write |
| Methods inherited from class org.eclipse.soda.dk.connection.Connection |
|---|
attemptRecoveryFromError, finalize, getConfigurationService, getDefaultResource, getErrorSeverity, getLogDetails4, getLogDetails5, getLogLevel, getReadByteCount, getResource, getWriteByteCount, isOpen, setConfigurationInformation, setConfigurationService, setLogLevel, setOpen, setReadByteCount, setWriteByteCount, updateReadByteCount, updateWriteByteCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASS_NAME
| Constructor Detail |
|---|
public RandomAccessFileConnection()
FileConnection object. This constructor uses the default input and output names.
RandomAccessFileConnection(RandomAccessFile),
RandomAccessFileConnection(String,String,String),
RandomAccessFileConnection(Dictionary),
RandomAccessFileConnection(ConfigurationService)public RandomAccessFileConnection(ConfigurationService configuration)
ConfigurationService) parameter.
configuration - The configuration (ConfigurationService) parameter.RandomAccessFileConnection(),
RandomAccessFileConnection(RandomAccessFile),
RandomAccessFileConnection(String,String,String),
RandomAccessFileConnection(Dictionary)public RandomAccessFileConnection(java.util.Dictionary properties)
properties - The properties (Dictionary) parameter.RandomAccessFileConnection(),
RandomAccessFileConnection(RandomAccessFile),
RandomAccessFileConnection(String,String,String),
RandomAccessFileConnection(ConfigurationService)public RandomAccessFileConnection(java.io.RandomAccessFile randomAccessFile)
RandomAccessFileConnection object using the input parameter(s). java.io.RandomAccessFile The random access file (RandomAccessFile) parameter.
randomAccessFile - The random access file (RandomAccessFile) parameter.RandomAccessFileConnection(),
RandomAccessFileConnection(String,String,String),
RandomAccessFileConnection(Dictionary),
RandomAccessFileConnection(ConfigurationService)
public RandomAccessFileConnection(java.lang.String path,
java.lang.String filename,
java.lang.String mode)
path - The path (String) parameter.filename - The filename (String) parameter.mode - The mode (String) parameter.RandomAccessFileConnection(),
RandomAccessFileConnection(RandomAccessFile),
RandomAccessFileConnection(Dictionary),
RandomAccessFileConnection(ConfigurationService)| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface ConnectionServiceclose in class StreamConnectionjava.io.IOException - IOException.ConnectionService.close()
public void exit()
throws java.io.IOException
exit in interface ConnectionServiceexit in class Connectionjava.io.IOException - IOException.public java.io.RandomAccessFile getRandomAccessFile()
RandomAccessFile) value.setRandomAccessFile(RandomAccessFile)
public void open()
throws java.io.IOException
open in interface ConnectionServiceopen in class Connectionjava.io.IOException - IOException.ConnectionService.open()
public int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
StreamConnection
read in interface ConnectionServiceread in class StreamConnectionbytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
int) value.
java.io.IOException - IOException.StreamConnection.read(byte[])public void setRandomAccessFile(java.io.RandomAccessFile randomAccessFile)
RandomAccessFile) parameter.
randomAccessFile - The random access file (RandomAccessFile) parameter.getRandomAccessFile()public void toStringInfo(java.lang.StringBuffer buffer)
Connection
toStringInfo in class Connectionbuffer - The buffer (StringBuffer) parameter.
public void write(byte[] bytes,
int offset,
int count)
throws java.io.IOException
StreamConnectioncount bytes from the byte array buffer starting at offset.
write in interface ConnectionServicewrite in class StreamConnectionbytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.count - The count (int) parameter.
java.io.IOException - IOException.StreamConnection.write(byte[])
|
2008-09-10 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||