thinkmap.datasource.stream
Class RemoteDataSource.URLStreamFactory

java.lang.Object
  extended by thinkmap.datasource.stream.RemoteDataSource.URLStreamFactory
All Implemented Interfaces:
IStreamFactory
Enclosing class:
RemoteDataSource

protected class RemoteDataSource.URLStreamFactory
extends Object
implements IStreamFactory


Field Summary
protected  IEntityHandler callback
           
protected  URLConnection uc
           
 
Constructor Summary
RemoteDataSource.URLStreamFactory(IEntityHandler callback)
           
 
Method Summary
 void closeStream(StreamWriter sf)
          Close an output stream for a StreamWriter.
protected  String getErrorString(String prefix)
           
 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

callback

protected IEntityHandler callback

uc

protected URLConnection uc
Constructor Detail

RemoteDataSource.URLStreamFactory

public RemoteDataSource.URLStreamFactory(IEntityHandler callback)
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

getErrorString

protected String getErrorString(String prefix)


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.