com.ebmwebsourcing.easycommons.stream
Class InputStreamForker

java.lang.Object
  extended by com.ebmwebsourcing.easycommons.stream.InputStreamForker

public final class InputStreamForker
extends java.lang.Object

Author:
aruffie This forker class allow to create on demand one copy of original provided. Several copies can be recovered by many calls to its, but take in account that original provided will be consumed.
See Also:
InputStreamForker#fork()} function.

Constructor Summary
InputStreamForker(java.io.InputStream originalInputStream)
           
 
Method Summary
 java.io.InputStream fork()
          This function allow to recover a new which contains one copy of the original
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamForker

public InputStreamForker(java.io.InputStream originalInputStream)
Method Detail

fork

public final java.io.InputStream fork()
                               throws java.io.IOException
This function allow to recover a new which contains one copy of the original

Returns:
Return one copy of the original
Throws:
java.io.IOException


Copyright © 2011 Petals Link. All Rights Reserved.