Class AccessibleBufferOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.keycloak.client.admin.cli.util.AccessibleBufferOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class AccessibleBufferOutputStream extends FilterOutputStream
- Author:
- Marko Strukelj
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description AccessibleBufferOutputStream(OutputStream out)Creates an output stream filter built on top of the specified underlying output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBuffer()intgetLastByte()voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.FilterOutputStream
close, flush, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
AccessibleBufferOutputStream
public AccessibleBufferOutputStream(OutputStream out)
Creates an output stream filter built on top of the specified underlying output stream.- Parameters:
out- the underlying output stream to be assigned to the field this.out for later use, ornullif this instance is to be created without an underlying stream.
-
-
Method Detail
-
write
public void write(int b) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
getBuffer
public byte[] getBuffer()
-
getLastByte
public int getLastByte()
-
-