net.sf.adatagenerator.api
Interface Pipe<S,T>

All Superinterfaces:
com.choicemaker.shared.api.CMSink<T>, com.choicemaker.shared.api.CMSource<S>

public interface Pipe<S,T>
extends com.choicemaker.shared.api.CMSource<S>, com.choicemaker.shared.api.CMSink<T>


Method Summary
 void close()
           
 boolean hasNext()
           
 void open()
           
 S read()
           
 void write(T object)
           
 

Method Detail

open

void open()
          throws com.choicemaker.shared.api.CMException
Specified by:
open in interface com.choicemaker.shared.api.CMSink<T>
Specified by:
open in interface com.choicemaker.shared.api.CMSource<S>
Throws:
com.choicemaker.shared.api.CMException

close

void close()
           throws com.choicemaker.shared.api.CMException
Specified by:
close in interface com.choicemaker.shared.api.CMSink<T>
Specified by:
close in interface com.choicemaker.shared.api.CMSource<S>
Throws:
com.choicemaker.shared.api.CMException

hasNext

boolean hasNext()
Specified by:
hasNext in interface com.choicemaker.shared.api.CMSource<S>

read

S read()
       throws com.choicemaker.shared.api.CMException
Specified by:
read in interface com.choicemaker.shared.api.CMSource<S>
Throws:
com.choicemaker.shared.api.CMException

write

void write(T object)
           throws com.choicemaker.shared.api.CMException
Specified by:
write in interface com.choicemaker.shared.api.CMSink<T>
Throws:
com.choicemaker.shared.api.CMException


Copyright © 2011-2012. All Rights Reserved.