com.ibm.security.krb5.internal.util
Class KrbDataInputStream
- java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
com.ibm.security.krb5.internal.util.KrbDataInputStream
All implemented interfaces:
java.io.Closeable
Direct known subclasses:
- public class KrbDataInputStream
- extends java.io.BufferedInputStream
Version:
1.00
Author:
Yanni Zhang
Field Summary
Modifier and Type | Field and Description |
---|---|
|
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 |
---|---|
|
read(int num)
Reads up to the specific number of bytes from this input stream.
|
|
read16()
DOCUMENT ME!
|
|
read16MSBF()
DOCUMENT ME!
|
|
read32()
DOCUMENT ME!
|
|
read32MSBF()
DOCUMENT ME!
|
|
readBytes32()
Reads and returns a sequence of bytes.
|
|
readString32()
Reads a sequence of bytes and converts it to a string.
|
|
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
- protected int version
DOCUMENT ME!
Constructor Detail
KrbDataInputStream
- public KrbDataInputStream(java.io.InputStream is)
Method Detail
read
- public int read(int num)
- 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
- public int read16()
- throws java.io.IOException
DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException
- DOCUMENT ME! read32
- public int read32()
- throws java.io.IOException
DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException
- DOCUMENT ME! readVersion
- public int readVersion()
- throws java.io.IOException
DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException
- DOCUMENT ME! read32MSBF
- protected int read32MSBF()
- throws java.io.IOException
DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException
- DOCUMENT ME! read16MSBF
- protected int read16MSBF()
- throws java.io.IOException
DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException
- DOCUMENT ME! readString32
- protected java.lang.String readString32( )
- 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
- protected byte[] readBytes32()
- 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