|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--javax.servlet.ServletOutputStream | +--de.oio.bugkilla.splitter.FailureServletOutputStream
The FailureServletOutputStream represents a class that only has the abiblity to write out an error message.
Constructor Summary | |
FailureServletOutputStream(javax.servlet.http.HttpServletResponse response)
Constructs a new FailureServletOutputStream that sends a failure message to the client. |
Method Summary | |
java.lang.String |
getError()
Returns the current error message that will be sent to the client if an error occured. |
void |
setError(java.lang.String error)
Sets the specified error message that will be sent to the client if an error occured. |
void |
write(byte[] b)
Writes the specified error message to the original reponse output stream. |
void |
write(byte[] b,
int off,
int len)
Writes the specified error message to the original reponse output stream. |
void |
write(int b)
Writes the specified error message to the original reponse output stream. |
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.io.OutputStream |
close, flush |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FailureServletOutputStream(javax.servlet.http.HttpServletResponse response)
Method Detail |
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- - the byte.
java.io.IOException
- - if an I/O error occurs.public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
b
- - the data.
java.io.IOException
- - if an I/O error occurs.write(byte[] b, int off, int len)
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
b
- - the data.off
- - the start offset in the data.len
- - the number of bytes to write.
java.io.IOException
- - if an I/O error occurs. In particular, an IOException is
thrown if the output stream is closed.public java.lang.String getError()
public void setError(java.lang.String error)
error
- The error message that will be sent to the client if an error occured.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |