thinkmap.server
Class DataSourceContext.ServletStreamFactory

java.lang.Object
  extended by thinkmap.server.DataSourceContext.ServletStreamFactory
All Implemented Interfaces:
IStreamFactory
Enclosing class:
DataSourceContext

protected class DataSourceContext.ServletStreamFactory
extends Object
implements IStreamFactory


Field Summary
protected  OutputStream os
           
 
Constructor Summary
DataSourceContext.ServletStreamFactory(OutputStream os)
           
 
Method Summary
 void closeStream(StreamWriter sf)
          Close an output stream for a StreamWriter.
 OutputStream openStream(StreamWriter sf)
          Open an output stream for a StreamWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

os

protected OutputStream os
Constructor Detail

DataSourceContext.ServletStreamFactory

public DataSourceContext.ServletStreamFactory(OutputStream os)
Method Detail

openStream

public OutputStream openStream(StreamWriter sf)
                        throws IOException
Description copied from interface: IStreamFactory
Open an output stream for a StreamWriter.

Specified by:
openStream in interface IStreamFactory
Parameters:
sf - the StreamWriter who is calling this method
Returns:
an output stream for the StreamWriter to write to
Throws:
IOException

closeStream

public void closeStream(StreamWriter sf)
Description copied from interface: IStreamFactory
Close an output stream for a StreamWriter.

Specified by:
closeStream in interface IStreamFactory
Parameters:
sf - the StreamWriter who is calling this method


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.