Skip to content

Instantly share code, notes, and snippets.

@mtakemiya
Created March 22, 2012 10:15
Embed
What would you like to do?
Streaming File Using SSHJ
/**
* 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