org.eclipse.osgi.framework.internal.core
Class FrameworkConsoleSession

java.lang.Object
  extended by org.eclipse.osgi.framework.console.ConsoleSession
      extended by org.eclipse.osgi.framework.internal.core.FrameworkConsoleSession
All Implemented Interfaces:
ServiceFactory<Object>

public class FrameworkConsoleSession
extends ConsoleSession


Constructor Summary
FrameworkConsoleSession(InputStream in, OutputStream out, Socket s)
           
 
Method Summary
 void doClose()
          Called by the ConsoleSession.close() method to free resources associated with this console session.
 InputStream getInput()
          Returns the input for this console session.
 OutputStream getOutput()
          Returns the output for this console session.
 
Methods inherited from class org.eclipse.osgi.framework.console.ConsoleSession
close, getService, ungetService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameworkConsoleSession

public FrameworkConsoleSession(InputStream in,
                               OutputStream out,
                               Socket s)
Method Detail

getInput

public InputStream getInput()
Description copied from class: ConsoleSession
Returns the input for this console session. This input will be used to read console commands from the user of the session.

Specified by:
getInput in class ConsoleSession
Returns:
the input for this console session

getOutput

public OutputStream getOutput()
Description copied from class: ConsoleSession
Returns the output for this console session. This output will be used to write the results of console commands.

Specified by:
getOutput in class ConsoleSession
Returns:
the output for this console session.

doClose

public void doClose()
Description copied from class: ConsoleSession
Called by the ConsoleSession.close() method to free resources associated with this console session. For example, closing the streams associated with the input and output for this session.

Specified by:
doClose in class ConsoleSession


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.