| Package | Description |
|---|---|
| no.digipost | |
| no.digipost.io |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
DiggIO.limit(InputStream inputStream,
DataSize maxDataToRead)
Limit the number of bytes to be read from an
InputStream. |
static InputStream |
DiggIO.limit(InputStream inputStream,
DataSize maxDataToRead,
Supplier<? extends Exception> throwIfTooManyBytes)
Limit the number of bytes to be read from an
InputStream. |
| Modifier and Type | Field and Description |
|---|---|
static DataSize |
DataSize.MAX |
static DataSize |
DataSize.ZERO |
| Modifier and Type | Method and Description |
|---|---|
static DataSize |
DataSize.bytes(long value) |
static DataSize |
DataSize.GB(long value) |
static DataSize |
DataSize.kB(long value) |
static DataSize |
DataSize.MB(long value) |
DataSize |
DataSize.minus(DataSize otherSize) |
static DataSize |
DataSize.of(long value,
DataSizeUnit unit) |
DataSize |
DataSize.plus(DataSize otherSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
DataSize.compareTo(DataSize other) |
boolean |
DataSize.isLessThan(DataSize otherSize) |
boolean |
DataSize.isMoreThan(DataSize otherSize) |
boolean |
DataSize.isSameOrLessThan(DataSize otherSize) |
boolean |
DataSize.isSameOrMoreThan(DataSize otherSize) |
DataSize |
DataSize.minus(DataSize otherSize) |
DataSize |
DataSize.plus(DataSize otherSize) |
| Constructor and Description |
|---|
LimitedInputStream(InputStream inputStream,
DataSize maxDataToRead,
Supplier<? extends Exception> throwIfTooManyBytes) |
Copyright © 2019 Digipost. All rights reserved.