|
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.file.connection.FileConnection
public class FileConnection
File Connection. The FileConnection class implements the FileConnectionService and provides the controls for the connection.
The list of exported services:
FileConnectionService,
ConnectionService| Field Summary | |
|---|---|
static java.lang.String |
CLASS_NAME
Defines the full class name. |
| Fields inherited from interface org.eclipse.soda.dk.file.connection.service.FileConnectionService |
|---|
CONNECTION_TYPE, DEFAULT_INPUTNAME, DEFAULT_INPUTPATH, DEFAULT_OUTPUTNAME, DEFAULT_OUTPUTPATH, FACTORY_SERVICE_NAME, FileConnection, INPUTNAME, INPUTNAME_DEFAULT, INPUTNAME_KEY, INPUTPATH, INPUTPATH_DEFAULT, INPUTPATH_KEY, MANAGED_SERVICE_NAME, OUTPUTNAME, OUTPUTNAME_DEFAULT, OUTPUTNAME_KEY, OUTPUTPATH, OUTPUTPATH_DEFAULT, OUTPUTPATH_KEY, SERVICE_DESCRIPTION, SERVICE_NAME |
| Constructor Summary | |
|---|---|
FileConnection()
Constructs a standard FileConnection object. |
|
FileConnection(ConfigurationService configuration)
|
|
FileConnection(java.util.Dictionary properties)
|
|
FileConnection(java.io.File inputFile,
java.io.File outputFile)
Constructs an FileConnection object using the input parameter(s). |
|
FileConnection(java.lang.String inputPath,
java.lang.String inputFilename,
java.lang.String outputPath,
java.lang.String outputFilename)
Constructs an FileConnection object using the input parameter(s). |
|
| Method Summary | |
|---|---|
void |
close()
Close. |
void |
exit()
Exit. |
java.io.File |
getInputFile()
Gets the File inputFile property value. |
java.io.File |
getOutputFile()
Gets the File outputFile property value. |
void |
open()
Perform the open action method. |
void |
setInputFile(java.io.File inputFile)
Sets the inputFile property. |
void |
setOutputFile(java.io.File outputFile)
Sets the outputFile property. |
void |
toStringInfo(java.lang.StringBuffer buffer)
To string info with the specified buffer parameter. |
| Methods inherited from class org.eclipse.soda.dk.connection.StreamConnection |
|---|
flush, getInputStream, getOutputStream, read, read, setInputStream, setOutputStream, write, 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 FileConnection()
FileConnection object. This constructor uses the default input and output names.
FileConnection(ConfigurationService),
FileConnection(Dictionary),
FileConnection(File,File),
FileConnection(String,String,String,String)public FileConnection(ConfigurationService configuration)
configuration - The configuration (ConfigurationService) parameter.FileConnection(),
FileConnection(Dictionary),
FileConnection(File,File),
FileConnection(String,String,String,String)public FileConnection(java.util.Dictionary properties)
properties - The properties (Dictionary) parameter.FileConnection(),
FileConnection(ConfigurationService),
FileConnection(File,File),
FileConnection(String,String,String,String)
public FileConnection(java.io.File inputFile,
java.io.File outputFile)
FileConnection object using the input parameter(s). java.io.File java.io.File
inputFile - The input file (File) parameter.outputFile - The output file (File) parameter.FileConnection(),
FileConnection(ConfigurationService),
FileConnection(Dictionary),
FileConnection(String,String,String,String)
public FileConnection(java.lang.String inputPath,
java.lang.String inputFilename,
java.lang.String outputPath,
java.lang.String outputFilename)
FileConnection object using the input parameter(s).
inputPath - The input path (String) parameter.inputFilename - The input filename (String) parameter.outputPath - The output path (String) parameter.outputFilename - The output filename (String) parameter.FileConnection(),
FileConnection(ConfigurationService),
FileConnection(Dictionary),
FileConnection(File,File)| 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.File getInputFile()
File inputFile property value.
File) value.setInputFile(File)public java.io.File getOutputFile()
File outputFile property value.
File) value.setOutputFile(File)
public void open()
throws java.io.IOException
open in interface ConnectionServiceopen in class Connectionjava.io.IOException - Thrown if the IOException exception condition occurs.ConnectionService.open()public void setInputFile(java.io.File inputFile)
java.io.File).
inputFile - The input file (File) parameter.getInputFile()public void setOutputFile(java.io.File outputFile)
java.io.File).
outputFile - The output file (File) parameter.getOutputFile()public void toStringInfo(java.lang.StringBuffer buffer)
Connection
toStringInfo in class Connectionbuffer - The buffer (StringBuffer) parameter.
|
2008-09-10 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||