Skip to content

Instantly share code, notes, and snippets.

@mtakemiya
Created March 22, 2012 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtakemiya/2157565 to your computer and use it in GitHub Desktop.
Save mtakemiya/2157565 to your computer and use it in GitHub Desktop.
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