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, println
flush, write
protected 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 OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
protected final void onWritePossible() throws IOException
IOException
protected final void onError(Throwable t)
protected abstract int doWrite(boolean block, byte[] b, int off, int len) throws IOException
IOException
protected abstract void doFlush() throws IOException
IOException
protected abstract void doClose() throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.