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