Package org.apache.sshd.common.util.io
Class SecureByteArrayOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- org.apache.sshd.common.util.io.SecureByteArrayOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public final class SecureByteArrayOutputStream extends java.io.ByteArrayOutputStream
AByteArrayOutputStream
that clears its internal buffer after resizing and when it isclosed
.
-
-
Constructor Summary
Constructors Constructor Description SecureByteArrayOutputStream()
SecureByteArrayOutputStream(int initialSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
write(byte[] b, int off, int len)
void
write(int b)
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.ByteArrayOutputStream
-
write
public void write(int b)
- Overrides:
write
in classjava.io.ByteArrayOutputStream
-
write
public void write(byte[] b, int off, int len)
- Overrides:
write
in classjava.io.ByteArrayOutputStream
-
-