biz.hammurapi.web.mda
Class FileRootChannel

java.lang.Object
  extended bybiz.hammurapi.web.mda.AbstractChannel
      extended bybiz.hammurapi.web.mda.MemoryChannelBase
          extended bybiz.hammurapi.web.mda.FileRootChannel
All Implemented Interfaces:
biz.hammurapi.util.Attributable, Channel, RootChannel
Direct Known Subclasses:
JavaFileRootChannel

public class FileRootChannel
extends MemoryChannelBase
implements RootChannel

Outputs channels to files.

Author:
Pavel

Constructor Summary
FileRootChannel(java.io.File outputDir)
           
 
Method Summary
protected  java.lang.String fileName(java.lang.String channelName)
          Converts channel name to file name.
 void flush()
          Outputs all channels to their destinations.
 
Methods inherited from class biz.hammurapi.web.mda.MemoryChannelBase
createSubChannel, createWriter
 
Methods inherited from class biz.hammurapi.web.mda.AbstractChannel
getAttribute, getChannel, getChannel, getParts, getWriter, getWriter, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface biz.hammurapi.web.mda.Channel
getChannel, getChannel, getParts, getWriter, getWriter
 
Methods inherited from interface biz.hammurapi.util.Attributable
getAttribute, removeAttribute, setAttribute
 

Constructor Detail

FileRootChannel

public FileRootChannel(java.io.File outputDir)
Method Detail

fileName

protected java.lang.String fileName(java.lang.String channelName)
Converts channel name to file name. By default returns channel name.

Parameters:
channelName -
Returns:

flush

public void flush()
           throws java.io.IOException
Description copied from interface: RootChannel
Outputs all channels to their destinations. Channels shall not be used afer flush() is invoked.

Specified by:
flush in interface RootChannel
Throws:
java.io.IOException


Copyright © 2006 Hammurapi Group. All Rights Reserved.