Class SokletServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
com.soklet.servlet.javax.SokletServletOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Soklet integration implementation of
ServletOutputStream.- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder used to construct instances ofSokletServletOutputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()booleanisReady()voidsetWriteListener(WriteListener writeListener) withOutputStream(OutputStream outputStream) voidwrite(int b) Methods inherited from class ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnMethods inherited from class OutputStream
nullOutputStream, write, write
-
Method Details
-
withOutputStream
@Nonnull public static SokletServletOutputStream.Builder withOutputStream(@Nonnull OutputStream outputStream) -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
isReady
- Specified by:
isReadyin classServletOutputStream
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
setWriteListener
- Specified by:
setWriteListenerin classServletOutputStream
-