Class LoggingInterceptor.LoggingStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.glassfish.jersey.logging.LoggingInterceptor.LoggingStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
- Enclosing class:
LoggingInterceptor
Helper class used to log an entity to the output stream up to the specified maximum number of bytes.
-
Field Summary
FieldsFields inherited from class FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionLoggingStream(StringBuilder b, OutputStream inner) CreatesLoggingStreamwith the entity and the underlying output stream as parameters. -
Method Summary
Modifier and TypeMethodDescription(package private) StringBuildergetStringBuilder(Charset charset) voidwrite(int i) Methods inherited from class FilterOutputStream
close, flush, write, writeMethods inherited from class OutputStream
nullOutputStream
-
Field Details
-
b
-
baos
-
-
Constructor Details
-
LoggingStream
LoggingStream(StringBuilder b, OutputStream inner) CreatesLoggingStreamwith the entity and the underlying output stream as parameters.- Parameters:
b- contains the entity to log.inner- the underlying output stream.
-
-
Method Details
-
getStringBuilder
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-