examples.transfer
Class IOStreamServiceImpl

java.lang.Object
  extended byde.fhg.igd.semoa.service.AbstractService
      extended byexamples.transfer.IOStreamServiceImpl
All Implemented Interfaces:
IOStreamService, Service

public class IOStreamServiceImpl
extends AbstractService
implements IOStreamService

This is the concrete implementation of a IOStreamService.

Version:
"$Id: IOStreamServiceImpl.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Ulrich Pinsdorf

Field Summary
private  InputStream in_
           
static String OPT_DESCR
           
private  OutputStream out_
           
 
Fields inherited from class de.fhg.igd.semoa.service.AbstractService
REV_POSTFIX, REV_PREFIX
 
Constructor Summary
private IOStreamServiceImpl()
          Private constructor.
 
Method Summary
 String author()
          Returns the name of the author of the service.
 InputStream getInputStream()
          Allows the owner of the service to take data form the accessor of the service.
 OutputStream getOutputStream()
          Allows the accessor of the service to pass a file to the owner of the service.
 String info()
          Returns the informative string which should describe the service's essence in a sentence.
static void main(String[] argv)
           
 String revision()
          Returns the revision number of this class as a string.
 
Methods inherited from class de.fhg.igd.semoa.service.AbstractService
checkDependencies, dependencies, docs, doPrivileged, doPrivileged, getACC, getEnvironment, majorVersion, minorVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPT_DESCR

public static final String OPT_DESCR
See Also:
Constant Field Values

in_

private InputStream in_

out_

private OutputStream out_
Constructor Detail

IOStreamServiceImpl

private IOStreamServiceImpl()
Private constructor. No one but this tool may generate an instance.

Method Detail

author

public String author()
Description copied from class: AbstractService
Returns the name of the author of the service. The format to be used should be John Doe <jdoe@zilch.net>.

Specified by:
author in interface Service
Specified by:
author in class AbstractService
Returns:
the String with the author's name.

revision

public String revision()
Description copied from class: AbstractService
Returns the revision number of this class as a string. This class provides default implementations of methods majorVersion(), minorVersion based on the assumption that this method returns a revision string as generated by rcs(1) for the template "$Revision: 1.7 $/$Date: 2007-08-08 04:41:53 +0200 (Wed, 08 Aug 2007) $".

Specified by:
revision in class AbstractService

info

public String info()
Description copied from class: AbstractService
Returns the informative string which should describe the service's essence in a sentence.

Specified by:
info in interface Service
Specified by:
info in class AbstractService
Returns:
the String with the service's short description.

getOutputStream

public OutputStream getOutputStream()
Allows the accessor of the service to pass a file to the owner of the service.

Specified by:
getOutputStream in interface IOStreamService
Returns:
an output stream to the service provider
Throws:
UnsupportedOperationException

getInputStream

public InputStream getInputStream()
Allows the owner of the service to take data form the accessor of the service.

Specified by:
getInputStream in interface IOStreamService
Throws:
UnsupportedOperationException

main

public static void main(String[] argv)


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.