Skip to content

Instantly share code, notes, and snippets.

@vijayakumar-psg587
Created January 11, 2019 05:58
Show Gist options
  • Save vijayakumar-psg587/7eb1013c932ccfd6ef3025b400971ce7 to your computer and use it in GitHub Desktop.
Save vijayakumar-psg587/7eb1013c932ccfd6ef3025b400971ce7 to your computer and use it in GitHub Desktop.
ByteArrayServletStream
public class ByteArrayServletStream extends ServletOutputStream {
ByteArrayOutputStream baos;
ByteArrayServletStream(ByteArrayOutputStream baos) {
this.baos = baos;
}
@Override
public void write(int param) throws IOException {
baos.write(param);
}
@Override
public boolean isReady() {
// TODO Auto-generated method stub
return false;
}
@Override
public void setWriteListener(WriteListener listener) {
// TODO Auto-generated method stub
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment