sun.security.mule.krb5.internal.util
Class KrbDataInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.BufferedInputStream
              extended by sun.security.mule.krb5.internal.util.KrbDataInputStream
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
CCacheInputStream, KeyTabInputStream

public class KrbDataInputStream
extends BufferedInputStream

This class implements a buffered input stream. It provides methods to read a chunck of data from underlying data stream.

Author:
Yanni Zhang

Field Summary
 
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
KrbDataInputStream(InputStream is)
           
 
Method Summary
 int read(int num)
          Reads up to the specific number of bytes from this input stream.
 int readVersion()
           
 void setNativeByteOrder()
           
 
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
 

Constructor Detail

KrbDataInputStream

public KrbDataInputStream(InputStream is)
Method Detail

setNativeByteOrder

public void setNativeByteOrder()

read

public int read(int num)
         throws 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.
IOException

readVersion

public int readVersion()
                throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.