Package fr.paris.lutece.test.mocks
Class MockServletOutputStream
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
fr.paris.lutece.test.mocks.MockServletOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class MockServletOutputStream
extends jakarta.servlet.ServletOutputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()final OutputStreambooleanisReady()voidsetWriteListener(jakarta.servlet.WriteListener w) voidwrite(int b) Methods inherited from class jakarta.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnMethods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Constructor Details
-
MockServletOutputStream
-
-
Method Details
-
getTargetStream
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
isReady
public boolean isReady()- Specified by:
isReadyin classjakarta.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(jakarta.servlet.WriteListener w) - Specified by:
setWriteListenerin classjakarta.servlet.ServletOutputStream
-