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()fromOutputStream(@NonNull OutputStream outputStream) booleanisReady()voidsetWriteListener(@NonNull WriteListener writeListener) withOutputStream(@NonNull OutputStream outputStream) voidvoidwrite(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
-
Method Details
-
fromOutputStream
public static @NonNull SokletServletOutputStream fromOutputStream(@NonNull OutputStream outputStream) -
withOutputStream
public static @NonNull SokletServletOutputStream.Builder withOutputStream(@NonNull OutputStream outputStream) -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
isReady
- Specified by:
isReadyin classServletOutputStream
-
write
- Overrides:
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
-
setWriteListener
- Specified by:
setWriteListenerin classServletOutputStream
-