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, writepublic SoftLimitBoundedByteArrayOutputStream(int capacity)
public SoftLimitBoundedByteArrayOutputStream(int capacity,
int limit)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void reset(int newlim)
public void reset()
public int getLimit()
public byte[] getBuffer()
public int size()
Copyright © 2023 Apache NiFi Project. All rights reserved.