public class SoftLimitBoundedByteArrayOutputStream extends OutputStream
Modifier and Type | Field and Description |
---|---|
private byte[] |
buffer |
private int |
count |
private int |
limit |
Constructor and Description |
---|
SoftLimitBoundedByteArrayOutputStream(int capacity) |
SoftLimitBoundedByteArrayOutputStream(int capacity,
int limit) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer() |
int |
getLimit() |
void |
reset() |
void |
reset(int newlim) |
int |
size() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, flush, write
public SoftLimitBoundedByteArrayOutputStream(int capacity)
public SoftLimitBoundedByteArrayOutputStream(int capacity, int limit)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void reset(int newlim)
public void reset()
public int getLimit()
public byte[] getBuffer()
public int size()
Copyright © 2020 Apache NiFi Project. All rights reserved.