Created
January 11, 2019 05:58
-
-
Save vijayakumar-psg587/7eb1013c932ccfd6ef3025b400971ce7 to your computer and use it in GitHub Desktop.
ByteArrayServletStream
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
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