Class FixedByteArrayOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
com.foreach.across.modules.logging.requestresponse.FixedByteArrayOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
Constructor Summary
ConstructorDescriptionFixedByteArrayOutputStream
(int maxSize) FixedByteArrayOutputStream
(int initialSize, int maxSize) -
Method Summary
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, toString, writeBytes, writeTo
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
FixedByteArrayOutputStream
public FixedByteArrayOutputStream(int maxSize) -
FixedByteArrayOutputStream
public FixedByteArrayOutputStream(int initialSize, int maxSize)
-
-
Method Details
-
write
public void write(byte[] b, int off, int len) - Overrides:
write
in classByteArrayOutputStream
-
write
public void write(int b) - Overrides:
write
in classByteArrayOutputStream
-
getRealSize
public long getRealSize() -
isMaximumReached
public boolean isMaximumReached()
-