APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.krb5.internal.util

public Class KrbDataInputStream

extends BufferedInputStream
Class Inheritance
Known Direct Subclasses
sun.security.krb5.internal.ktab.KeyTabInputStream, sun.security.krb5.internal.ccache.CCacheInputStream
Imports
java.io.BufferedInputStream, .InputStream, .IOException

This class implements a buffered input stream. It provides methods to read a chunk of data from underlying data stream.
Author
Yanni Zhang

Field Summary

Modifier and TypeField and Description
private boolean
Inherited from java.io.BufferedInputStream:
bufcountmarklimitmarkpospos

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the int value of this byte array.
read
(int
the number of bytes to be read.
num
)

Reads up to the specific number of bytes from this input stream.

public final int

Returns:

the length value represented by this byte array.
readLength4
()

Reads a length value which is represented in 4 bytes from this input stream.

public int
public void
Inherited from java.io.BufferedInputStream:
availableclosemarkmarkSupportedreadreadresetskiptransferTo

Field Detail

bigEndianback to summary
private boolean bigEndian

Constructor Detail

KrbDataInputStreamback to summary
public KrbDataInputStream(InputStream is)

Method Detail

readback to summary
public int read(int num) throws IOException

Reads up to the specific number of bytes from this input stream.

Parameters
num:int

the number of bytes to be read.

Returns:int

the int value of this byte array.

Exceptions
IOException:
if there are not enough bytes
readLength4back to summary
public final int readLength4() throws IOException

Reads a length value which is represented in 4 bytes from this input stream. The value must be positive.

Returns:int

the length value represented by this byte array.

Exceptions
IOException:
if there are not enough bytes or it represents a negative value
readVersionback to summary
public int readVersion() throws IOException
setNativeByteOrderback to summary
public void setNativeByteOrder()