org.limitless.nmc.Client
Class MuckOutputDestination
java.lang.Object
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.
|
Field Summary |
private java.io.Writer |
destination
|
(package private) static org.apache.log4j.Logger |
logger
Log4J Logger |
|
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 |
logger
static org.apache.log4j.Logger logger
- Log4J Logger
destination
private java.io.Writer destination
MuckOutputDestination
MuckOutputDestination(java.io.Writer destination)
- package scope
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.