public abstract class AbstractServletOutputStream extends ServletOutputStream
ServletOutputStream.| Modifier and Type | Field and Description |
|---|---|
protected static StringManager |
sm |
| Constructor and Description |
|---|
AbstractServletOutputStream(int asyncWriteBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract void |
doClose() |
protected abstract void |
doFlush() |
protected abstract int |
doWrite(boolean block,
byte[] b,
int off,
int len)
Abstract method to be overridden by concrete implementations.
|
protected boolean |
isCloseRequired() |
boolean |
isReady()
New Servlet 3.1 method.
|
protected void |
onError(Throwable t) |
protected void |
onWritePossible() |
void |
setWriteListener(WriteListener listener)
New Servlet 3.1 method.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnflush, writeprotected static final StringManager sm
public AbstractServletOutputStream(int asyncWriteBufferSize)
public final boolean isReady()
public final void setWriteListener(WriteListener listener)
protected final boolean isCloseRequired()
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionprotected final void onWritePossible()
throws IOException
IOExceptionprotected final void onError(Throwable t)
protected abstract int doWrite(boolean block,
byte[] b,
int off,
int len)
throws IOException
IOExceptionprotected abstract void doFlush()
throws IOException
IOExceptionprotected abstract void doClose()
throws IOException
IOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.