Class SecureByteArrayOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- org.apache.sshd.common.util.io.output.SecureByteArrayOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public final class SecureByteArrayOutputStream extends java.io.ByteArrayOutputStreamAByteArrayOutputStreamthat 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 voidclose()voidwrite(byte[] b, int off, int len)voidwrite(int b)
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.ByteArrayOutputStream
-
write
public void write(int b)
- Overrides:
writein classjava.io.ByteArrayOutputStream
-
write
public void write(byte[] b, int off, int len)- Overrides:
writein classjava.io.ByteArrayOutputStream
-
-