Streaming File Using SSHJ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* www.brainliner.jp | |
* | |
* @author 武宮 誠 「Makoto Takemiya」<br /> | |
* (株)国際電気通信基礎技術研究・脳情報研究所・神経情報学研究室<br/> | |
* 「ATR - Computational Neuroscience Laboratories, Department of Neuroinformatics」 | |
* | |
* @version 2012/03/22 | |
*/ | |
public class StreamingInMemoryDestFile extends InMemoryDestFile { | |
private OutputStream os; | |
/** | |
* @param os | |
*/ | |
public StreamingInMemoryDestFile(OutputStream os) { | |
super(); | |
this.os = os; | |
} | |
/* | |
* (non-Javadoc) | |
* @see net.schmizz.sshj.xfer.LocalDestFile#getOutputStream() | |
*/ | |
@Override | |
public OutputStream getOutputStream() throws IOException { | |
return os; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment