org.apache.coyote.http11.upgrade
Class AbstractServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.apache.coyote.http11.upgrade.AbstractServletOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Direct Known Subclasses:
- AprServletOutputStream, BioServletOutputStream, NioServletOutputStream
public abstract class AbstractServletOutputStream
- extends ServletOutputStream
Implements the new Servlet 3.1 methods for ServletOutputStream
.
Methods inherited from class javax.servlet.ServletOutputStream |
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sm
protected static final StringManager sm
AbstractServletOutputStream
public AbstractServletOutputStream()
isReady
public final boolean isReady()
- New Servlet 3.1 method.
setWriteListener
public final void setWriteListener(WriteListener listener)
- New Servlet 3.1 method.
isCloseRequired
protected final boolean isCloseRequired()
write
public void write(int b)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStream
- Throws:
IOException
onWritePossible
protected final void onWritePossible()
throws IOException
- Throws:
IOException
doWrite
protected abstract int doWrite(boolean block,
byte[] b,
int off,
int len)
throws IOException
- Abstract method to be overridden by concrete implementations. The base
class will ensure that there are no concurrent calls to this method for
the same socket.
- Throws:
IOException
doFlush
protected abstract void doFlush()
throws IOException
- Throws:
IOException
doClose
protected abstract void doClose()
throws IOException
- Throws:
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.