| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ZlibExpanderProvider(long
max number of bytes allowed in an expanded stream. limit)Create a provider which caps the number of expanded bytes that can be produced when the compressed stream is parsed. |
| Modifier and Type | Method and Description |
|---|---|
| public InputExpander | get(final AlgorithmIdentifier algorithm)
Implements org.
|
| limit | back to summary |
|---|---|
| private final long limit | |
| ZlibExpanderProvider | back to summary |
|---|---|
| public ZlibExpanderProvider() Base constructor. Create an expander which will not limit the size of any objects expanded in the stream. | |
| ZlibExpanderProvider | back to summary |
|---|---|
| public ZlibExpanderProvider(long limit) Create a provider which caps the number of expanded bytes that can be produced when the compressed stream is parsed.
| |
| get | back to summary |
|---|---|
| public InputExpander get(final AlgorithmIdentifier algorithm) Implements org. | |
| Modifier and Type | Field and Description |
|---|---|
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | read(byte[]
the buffer into which the data is read. buf, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. Reads up to |
| remaining | back to summary |
|---|---|
| private long remaining | |
| LimitedInputStream | back to summary |
|---|---|
| public LimitedInputStream(InputStream input, long limit) | |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf, int off, int len) throws IOException Overrides java. Doc from java. Reads up to
| |