public class ServletOutputStreamImpl extends ServletOutputStream
Constructor and Description |
---|
ServletOutputStreamImpl() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
init(java.io.OutputStream out)
Initialize with the current response stream.
|
void |
print(java.lang.String s)
Prints a string to the stream.
|
java.lang.String |
toString() |
void |
write(byte[] buf,
int offset,
int len)
Writes a byte buffer to the output stream.
|
void |
write(int b)
Writes a byte to the output stream.
|
public void init(java.io.OutputStream out)
public final void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public final void write(byte[] buf, int offset, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void print(java.lang.String s) throws java.io.IOException
print
in class ServletOutputStream
s
- the string to write.java.io.IOException
public final void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public final 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
public java.lang.String toString()
toString
in class java.lang.Object