org.limitless.nmc.Client
Class MuckOutputDestination

java.lang.Object
  extended by org.limitless.nmc.Client.MuckOutputDestination
All Implemented Interfaces:
NMCStringDataDestination

public class MuckOutputDestination
extends java.lang.Object
implements NMCStringDataDestination

This class takes strings meant to be sent into the MUCK, and properly terminates them (CR/LF) and sends them to the Writer.


Nested Class Summary
static class MuckOutputDestination.Factory
           
 
Field Summary
private  java.io.Writer destination
           
(package private) static org.apache.log4j.Logger logger
          Log4J Logger
 
Constructor Summary
MuckOutputDestination(java.io.Writer destination)
          package scope
 
Method Summary
 void close()
          Call this when done!
static void main(java.lang.String[] args)
           
 void put(java.lang.String data)
          Send the data properly formatted to the target MU.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
Log4J Logger


destination

private java.io.Writer destination
Constructor Detail

MuckOutputDestination

MuckOutputDestination(java.io.Writer destination)
package scope

Method Detail

put

public void put(java.lang.String data)
         throws NMCConnectionLost
Description copied from interface: NMCStringDataDestination
Send the data properly formatted to the target MU.

Specified by:
put in interface NMCStringDataDestination
Throws:
NMCConnectionLost

close

public void close()
Description copied from interface: NMCStringDataDestination
Call this when done!

Specified by:
close in interface NMCStringDataDestination

main

public static void main(java.lang.String[] args)


Copyright © 1995, 2004 Limitless Knowledge Association, All Rights Reserved.