submarine.connectors
Class TCPWriter

java.lang.Object
  |
  +--submarine.connectors.TCPWriter
All Implemented Interfaces:
WritingFunction, XMLConfigurable

public class TCPWriter
extends java.lang.Object
implements WritingFunction


Field Summary
 java.lang.String encoding
           
 int endOfStream
           
 java.lang.String host
           
 int port
           
 int waitResponse
           
 
Constructor Summary
TCPWriter()
           
 
Method Summary
 void init(org.w3c.dom.Element xml)
           
static void main(java.lang.String[] args)
           
 boolean putDocument(Message.MsgContext context, java.lang.Object doc)
           
 java.lang.Object putSyncDocument(Message.MsgContext context, java.lang.Object doc)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

port

public int port

host

public java.lang.String host

encoding

public java.lang.String encoding

waitResponse

public int waitResponse

endOfStream

public int endOfStream
Constructor Detail

TCPWriter

public TCPWriter()
Method Detail

putSyncDocument

public java.lang.Object putSyncDocument(Message.MsgContext context,
                                        java.lang.Object doc)
                                 throws java.lang.Exception
Specified by:
putSyncDocument in interface WritingFunction
Following copied from interface: submarine.core.WritingFunction
Parameters:
doc -  
context -  
Returns:
java.lang.Object
Throws:
java.lang.Exception -  

putDocument

public boolean putDocument(Message.MsgContext context,
                           java.lang.Object doc)
                    throws java.lang.Exception
Specified by:
putDocument in interface WritingFunction
Following copied from interface: submarine.core.WritingFunction
Parameters:
doc -  
context -  
Returns:
boolean
Throws:
java.lang.Exception -  

init

public void init(org.w3c.dom.Element xml)
          throws java.lang.Exception
Specified by:
init in interface XMLConfigurable
Following copied from interface: submarine.core.XMLConfigurable
Parameters:
xml -  
Throws:
java.lang.Exception -  

main

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

Submarine project. free distribution of this software must include the opensource licence.
Guénolé de Cadoudal.