Top Fields Constructors Methods
org.bouncycastle.asn1

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
calculateBodyLength(int length)

pack-priv static int
calculateTagLength(int tagNo)

pack-priv static int

Returns:

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

Find out possible longest length...

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

calculateBodyLengthback to summary
pack-priv static int calculateBodyLength(int length)
calculateTagLengthback to summary
pack-priv static int calculateTagLength(int tagNo) throws IOException
findLimitback to summary
pack-priv static int findLimit(InputStream in)

Find out possible longest length...

Parameters
in:InputStream

input stream of interest

Returns:int

length calculation or MAX_VALUE.