com.ibm.security.krb5.internal.util

Class KrbDataInputStream

  1. java.lang.Object
  2. extended byjava.io.InputStream
  3. extended byjava.io.FilterInputStream
  4. extended byjava.io.BufferedInputStream
  5. extended bycom.ibm.security.krb5.internal.util.KrbDataInputStream
All implemented interfaces:
java.io.Closeable
Direct known subclasses:
CCacheInputStream, KeyTabInputStream

  1. public class KrbDataInputStream
  2. extends java.io.BufferedInputStream
This class implements a buffered input stream. It provides methods to read a chunck of data from underlying data stream.
Version:
1.00
Author:
Yanni Zhang

Field Summary

Modifier and Type Field and Description
  1. protected
  2. int
version
DOCUMENT ME!
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
Fields inherited from class java.io.FilterInputStream
in

Constructor Summary

Constructor and Description
KrbDataInputStream(java.io.InputStream is)

Method Summary

Modifier and Type Method and Description
  1. int
read(int num)
Reads up to the specific number of bytes from this input stream.
  1. int
read16()
DOCUMENT ME!
  1. protected
  2. int
read16MSBF()
DOCUMENT ME!
  1. int
read32()
DOCUMENT ME!
  1. protected
  2. int
read32MSBF()
DOCUMENT ME!
  1. protected
  2. byte[]
readBytes32()
Reads and returns a sequence of bytes.
  1. protected
  2. java.lang.String
readString32()
Reads a sequence of bytes and converts it to a string.
  1. int
readVersion()
DOCUMENT ME!
Methods inherited from class java.io.BufferedInputStream
available, close, mark, markSupported, read, read, reset, skip
Methods inherited from class java.io.FilterInputStream
read
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

version

  1. protected int version
DOCUMENT ME!

Constructor Detail

KrbDataInputStream

  1. public KrbDataInputStream(java.io.InputStream is)

Method Detail

read

  1. public int read(int num)
  2. throws java.io.IOException
Reads up to the specific number of bytes from this input stream.
Parameters:
num - the number of bytes to be read.
Returns:
the int value of this byte array.
Throws:
IOException.
java.io.IOException

read16

  1. public int read16()
  2. throws java.io.IOException
DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

read32

  1. public int read32()
  2. throws java.io.IOException
DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

readVersion

  1. public int readVersion()
  2. throws java.io.IOException
DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

read32MSBF

  1. protected int read32MSBF()
  2. throws java.io.IOException
DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

read16MSBF

  1. protected int read16MSBF()
  2. throws java.io.IOException
DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

readString32

  1. protected java.lang.String readString32( )
  2. throws java.io.IOException
Reads a sequence of bytes and converts it to a string. The sequence of bytes must be preceded by a 4-byte integer length whose format depends on the ccache type. The byte sequence read is converted to a string using the default character encoding. Null is returned if the length is zero.
Returns:
DOCUMENT ME!
Throws:
java.io.IOException

readBytes32

  1. protected byte[] readBytes32()
  2. throws java.io.IOException
Reads and returns a sequence of bytes. The sequence of bytes must be preceded by a 4-byte integer length whose format depends on the ccache type. Null is returned if the length is zero.
Returns:
DOCUMENT ME!
Throws:
java.io.IOException