Top Fields Constructors Methods
org.bouncycastle.bcpg

pack-priv Class StreamUtil

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, .FileInputStream, .IOException, .InputStream, java.nio.channels.FileChannel

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static int

Returns:

length calculation or MAX_VALUE.
findLimit
(InputStream
input stream of interest
in
)

Find out possible longest length, capped by available memory.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAX_MEMORYback to summary
private static final long MAX_MEMORY

Constructor Detail

StreamUtilback to summary
pack-priv StreamUtil()

Method Detail

findLimitback to summary
pack-priv static int findLimit(InputStream in)

Find out possible longest length, capped by available memory.

Parameters
in:InputStream

input stream of interest

Returns:int

length calculation or MAX_VALUE.