Package org.glassfish.jersey.logging
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 java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorsConstructorDescriptionLoggingStream
(StringBuilder b, OutputStream inner) CreatesLoggingStream
with the entity and the underlying output stream as parameters. -
Method Summary
Modifier and TypeMethodDescription(package private) StringBuilder
getStringBuilder
(Charset charset) void
write
(int i) Methods inherited from class java.io.FilterOutputStream
close, flush, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
b
-
baos
-
-
Constructor Details
-
LoggingStream
LoggingStream(StringBuilder b, OutputStream inner) CreatesLoggingStream
with 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:
write
in classFilterOutputStream
- Throws:
IOException
-